@magidoc/plugin-reverse-schema-mapper
Advanced tools
Comparing version 2.6.0 to 2.6.1
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"type": "module", | ||
@@ -27,10 +27,8 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@jest/types": "^28.1.3", | ||
"@types/jest": "^28.1.6", | ||
"@types/node": "^18.0.6", | ||
"jest": "^28.1.3", | ||
"jest-extended": "^3.0.1", | ||
"@types/node": "^18.6.1", | ||
"c8": "^7.12.0", | ||
"rollup": "^2.77.0", | ||
"ts-jest": "^28.0.7", | ||
"typescript": "^4.7.4" | ||
"typescript": "^4.7.4", | ||
"vite": "^3.0.3", | ||
"vitest": "^0.19.1" | ||
}, | ||
@@ -44,5 +42,5 @@ "peerDependencies": { | ||
"build:tsc": "tsc --build tsconfig.build.json", | ||
"test": "jest", | ||
"test": "vitest run --coverage", | ||
"release": "pnpm publish --no-git-checks --access public" | ||
} | ||
} |
import { GraphQLNamedType, GraphQLObjectType } from 'graphql' | ||
import { createReverseMapping } from '../src' | ||
import { ReferenceKind } from '../src/reverseUsage' | ||
import { describe, it, expect } from 'vitest' | ||
@@ -5,0 +6,0 @@ const schema = getTestSchema() |
@@ -27,3 +27,5 @@ import { | ||
if (!result) { | ||
fail(`field ${name} should not be null... did you modify the test schema?`) | ||
throw new Error( | ||
`field ${name} should not be null... did you modify the test schema?`, | ||
) | ||
} | ||
@@ -30,0 +32,0 @@ |
@@ -17,4 +17,4 @@ { | ||
}, | ||
"include": ["src/**/*.ts", "tests/**/*.ts"], | ||
"include": ["vitest.config.ts", "src/**/*.ts", "tests/**/*.ts"], | ||
"exclude": ["node_modules"] | ||
} |
6
86805
27
2798