@@ -9,7 +9,7 @@ const { updateCLP } = require('./support/dev');
99
1010const  pluralize  =  require ( 'pluralize' ) ; 
1111const  {  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 ) ) ; 
1313const  {  SubscriptionClient }  =  require ( 'subscriptions-transport-ws' ) ; 
1414const  {  WebSocketLink }  =  require ( '@apollo/client/link/ws' ) ; 
1515const  {  mergeSchemas }  =  require ( '@graphql-tools/schema' ) ; 
@@ -452,7 +452,7 @@ describe('ParseGraphQLServer', () => {
452452        ws 
453453      ) ; 
454454      const  wsLink  =  new  WebSocketLink ( subscriptionClient ) ; 
455-       const  httpLink  =  createUploadLink ( { 
455+       const  httpLink  =  await   createUploadLink ( { 
456456        uri : 'http://localhost:13377/graphql' , 
457457        fetch, 
458458        headers, 
@@ -11008,7 +11008,7 @@ describe('ParseGraphQLServer', () => {
1100811008        } ) ; 
1100911009        parseGraphQLServer . applyGraphQL ( expressApp ) ; 
1101011010        await  new  Promise ( resolve  =>  httpServer . listen ( {  port : 13377  } ,  resolve ) ) ; 
11011-         const  httpLink  =  createUploadLink ( { 
11011+         const  httpLink  =  await   createUploadLink ( { 
1101211012          uri : 'http://localhost:13377/graphql' , 
1101311013          fetch, 
1101411014          headers, 
@@ -11232,7 +11232,7 @@ describe('ParseGraphQLServer', () => {
1123211232
1123311233        parseGraphQLServer . applyGraphQL ( expressApp ) ; 
1123411234        await  new  Promise ( resolve  =>  httpServer . listen ( {  port : 13377  } ,  resolve ) ) ; 
11235-         const  httpLink  =  createUploadLink ( { 
11235+         const  httpLink  =  await   createUploadLink ( { 
1123611236          uri : 'http://localhost:13377/graphql' , 
1123711237          fetch, 
1123811238          headers, 
@@ -11427,7 +11427,7 @@ describe('ParseGraphQLServer', () => {
1142711427
1142811428          parseGraphQLServer . applyGraphQL ( expressApp ) ; 
1142911429          await  new  Promise ( resolve  =>  httpServer . listen ( {  port : 13377  } ,  resolve ) ) ; 
11430-           const  httpLink  =  createUploadLink ( { 
11430+           const  httpLink  =  await   createUploadLink ( { 
1143111431            uri : 'http://localhost:13377/graphql' , 
1143211432            fetch, 
1143311433            headers, 
0 commit comments