File tree Expand file tree Collapse file tree
packages/plugins/typescript/graphql-request Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050 "devDependencies" : {
5151 "@graphql-codegen/testing" : " 1.18.3" ,
5252 "@graphql-tools/schema" : " 10.0.23" ,
53- "graphql-request" : " 7.1.2 " ,
53+ "graphql-request" : " 7.2.0 " ,
5454 "node-fetch" : " 2.7.0"
5555 },
5656 "publishConfig" : {
Original file line number Diff line number Diff line change 11import { join } from 'path' ;
22import { remove , writeFile } from 'fs-extra' ;
3- // @ts -ignore
4- import { OperationTypeNode , parse } from 'graphql' ;
3+ import { parse } from 'graphql' ;
54import { codegen } from '@graphql-codegen/core' ;
65import { mockGraphQLServer } from '@graphql-codegen/testing' ;
76import * as TypeScriptPlugin from '@graphql-codegen/typescript' ;
@@ -11,16 +10,6 @@ import * as GraphQLRequestPlugin from '../src/index.js';
1110
1211describe ( 'GraphQL Request Integration' , ( ) => {
1312 it ( 'should send requests correctly' , async ( ) => {
14- // @ts -ignore
15- if ( ! OperationTypeNode ) {
16- // `OperationTypeNode` is a type in `graphql@15`, but it is a native TS enum in `graphql@16`.
17- // `graphql-request@7` uses `OperationTypeNode` enum to analyse document.
18- // So, `graphql-request@7` does not work with `graphql@15`.
19- //
20- // This block is a hacky way to skip running this test for `graphql@15`.
21- return ;
22- }
23-
2413 const sdkFileName = 'graphql-request-sdk.ts' ;
2514 const sdkFilePath = join ( __dirname , './test-files' , sdkFileName ) ;
2615 const typeDefs = parse ( /* GraphQL */ `
Original file line number Diff line number Diff line change @@ -4593,10 +4593,10 @@ graphql-language-service-utils@^2.7.1:
45934593 graphql-language-service-types "^1.8.7"
45944594 nullthrows "^1.0.0"
45954595
4596- graphql-request@7.1.2 :
4597- version "7.1.2 "
4598- resolved "https://registry.yarnpkg.com/graphql-request/-/graphql-request-7.1.2. tgz#52d7fd6d8d08c9f0b00c84a091376ce9fbdfa945 "
4599- integrity sha512-+XE3iuC55C2di5ZUrB4pjgwe+nIQBuXVIK9J98wrVwojzDW3GMdSBZfxUk8l4j9TieIpjpggclxhNEU9ebGF8w ==
4596+ graphql-request@7.2.0 :
4597+ version "7.2.0 "
4598+ resolved "https://registry.yarnpkg.com/graphql-request/-/graphql-request-7.2.0. tgz#af4aa25f27a087dd4fc93a4ff54a0f59c4487269 "
4599+ integrity sha512-0GR7eQHBFYz372u9lxS16cOtEekFlZYB2qOyq8wDvzRmdRSJ0mgUVX1tzNcIzk3G+4NY+mGtSz411wZdeDF/+A ==
46004600 dependencies :
46014601 " @graphql-typed-document-node/core" " ^3.2.0"
46024602
You can’t perform that action at this time.
0 commit comments