@magidoc/rollup-plugin-fetch-gql-schema
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", | ||
@@ -29,12 +29,10 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@jest/types": "^28.1.3", | ||
"@types/jest": "^28.1.6", | ||
"@types/node": "^18.0.6", | ||
"@types/node": "^18.6.1", | ||
"@types/prettier": "^2.6.3", | ||
"jest": "^28.1.3", | ||
"jest-extended": "^3.0.1", | ||
"c8": "^7.12.0", | ||
"nock": "^13.2.9", | ||
"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" | ||
}, | ||
@@ -45,5 +43,5 @@ "scripts": { | ||
"build:tsc": "tsc --build tsconfig.build.json", | ||
"test": "jest", | ||
"test": "vitest run --coverage", | ||
"release": "pnpm publish --no-git-checks --access public" | ||
} | ||
} |
import queryGraphQLSchema from '../../src/schema/query' | ||
import nock from 'nock' | ||
import { getIntrospectionQuery } from 'graphql' | ||
import { describe, beforeEach, it, expect } from 'vitest' | ||
@@ -48,7 +49,5 @@ const basePath = 'https://what-the-test.com' | ||
it('throws an error', async () => { | ||
;( | ||
await expect(async () => { | ||
await queryGraphQLSchema(fullPath, {}) | ||
}) | ||
).rejects.toThrowError('Request failed with status code 401') | ||
await expect(queryGraphQLSchema(fullPath, {})).rejects.toThrowError( | ||
'Request failed with status code 401', | ||
) | ||
}) | ||
@@ -55,0 +54,0 @@ }) |
@@ -19,2 +19,3 @@ { | ||
"include": [ | ||
"vitest.config.ts", | ||
"src/**/*.ts", | ||
@@ -21,0 +22,0 @@ "src/**/*.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8
15077
17
356