@@ -9,7 +9,7 @@ const { updateCLP } = require('./support/dev');
9
9
10
10
const pluralize = require ( 'pluralize' ) ;
11
11
const { getMainDefinition } = require ( '@apollo/client/utilities' ) ;
12
- const { createUploadLink } = require ( 'apollo-upload-client' ) ;
12
+ const createUploadLink = ( ... args ) => import ( 'apollo-upload-client/createUploadLink.mjs' ) . then ( ( { default : fn } ) => fn ( ... args ) ) ;
13
13
const { SubscriptionClient } = require ( 'subscriptions-transport-ws' ) ;
14
14
const { WebSocketLink } = require ( '@apollo/client/link/ws' ) ;
15
15
const { mergeSchemas } = require ( '@graphql-tools/schema' ) ;
@@ -452,7 +452,7 @@ describe('ParseGraphQLServer', () => {
452
452
ws
453
453
) ;
454
454
const wsLink = new WebSocketLink ( subscriptionClient ) ;
455
- const httpLink = createUploadLink ( {
455
+ const httpLink = await createUploadLink ( {
456
456
uri : 'http://localhost:13377/graphql' ,
457
457
fetch,
458
458
headers,
@@ -11008,7 +11008,7 @@ describe('ParseGraphQLServer', () => {
11008
11008
} ) ;
11009
11009
parseGraphQLServer . applyGraphQL ( expressApp ) ;
11010
11010
await new Promise ( resolve => httpServer . listen ( { port : 13377 } , resolve ) ) ;
11011
- const httpLink = createUploadLink ( {
11011
+ const httpLink = await createUploadLink ( {
11012
11012
uri : 'http://localhost:13377/graphql' ,
11013
11013
fetch,
11014
11014
headers,
@@ -11232,7 +11232,7 @@ describe('ParseGraphQLServer', () => {
11232
11232
11233
11233
parseGraphQLServer . applyGraphQL ( expressApp ) ;
11234
11234
await new Promise ( resolve => httpServer . listen ( { port : 13377 } , resolve ) ) ;
11235
- const httpLink = createUploadLink ( {
11235
+ const httpLink = await createUploadLink ( {
11236
11236
uri : 'http://localhost:13377/graphql' ,
11237
11237
fetch,
11238
11238
headers,
@@ -11427,7 +11427,7 @@ describe('ParseGraphQLServer', () => {
11427
11427
11428
11428
parseGraphQLServer . applyGraphQL ( expressApp ) ;
11429
11429
await new Promise ( resolve => httpServer . listen ( { port : 13377 } , resolve ) ) ;
11430
- const httpLink = createUploadLink ( {
11430
+ const httpLink = await createUploadLink ( {
11431
11431
uri : 'http://localhost:13377/graphql' ,
11432
11432
fetch,
11433
11433
headers,
0 commit comments