Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@magidoc/rollup-plugin-fetch-gql-schema

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@magidoc/rollup-plugin-fetch-gql-schema - npm Package Compare versions

Comparing version 2.6.0 to 2.6.1

vitest.config.ts

16

package.json

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc