File tree Expand file tree Collapse file tree 6 files changed +28
-17
lines changed
Expand file tree Collapse file tree 6 files changed +28
-17
lines changed Original file line number Diff line number Diff line change 1- const path = require ( 'path' )
2- const jsonServer = require ( 'json-server' )
3- const { ApolloServer } = require ( '@apollo/server' )
4- const { startStandaloneServer } = require ( '@apollo/server/standalone' )
5- const { resolvers, typeDefs } = require ( './schema' )
1+ import path from 'path'
2+ import jsonServer from 'json-server'
3+ import { ApolloServer } from '@apollo/server'
4+ import { startStandaloneServer } from '@apollo/server/standalone'
5+ import { resolvers , typeDefs } from './schema.js'
6+ import { fileURLToPath } from 'url'
7+ import { dirname } from 'path'
68
7- const TestHelper = require ( '../../support/TestHelper' )
9+ const __filename = fileURLToPath ( import . meta. url )
10+ const __dirname = dirname ( __filename )
11+
12+ import TestHelper from '../../support/TestHelper.js'
813
914const PORT = TestHelper . graphQLServerPort ( )
1015
@@ -25,4 +30,4 @@ res.then(({ url }) => {
2530 console . log ( `test graphQL server listening on ${ url } ...` )
2631} )
2732
28- module . exports = res
33+ export default res
Original file line number Diff line number Diff line change 1- const assert = require ( 'assert' )
2- const Helper = require ( '../../../../lib/helper' )
1+ import assert from 'assert'
2+ import Helper from '../../../../lib/helper.js'
33
44class CheckoutHelper extends Helper {
55 constructor ( config ) {
@@ -58,9 +58,10 @@ class CheckoutHelper extends Helper {
5858
5959 debug ( message ) {
6060 // Use CodeceptJS output system instead of direct console.log
61- const output = require ( '../../../../lib/output' )
62- output . debug ( `[Helper] ${ message } ` )
61+ import ( '../../../../lib/output.js' ) . then ( ( { default : output } ) => {
62+ output . debug ( `[Helper] ${ message } ` )
63+ } )
6364 }
6465}
6566
66- module . exports = CheckoutHelper
67+ export default CheckoutHelper
Original file line number Diff line number Diff line change 1- const assert = require ( 'assert' ) ;
1+ import assert from 'assert' ;
22
33Feature ( 'Complete validation for issue #5066 fix' ) ;
44
Original file line number Diff line number Diff line change 1- const assert = require ( 'assert' ) ;
1+ import assert from 'assert' ;
22
33Feature ( 'Fix for issue #5066: Unable to inject data between workers because of proxy object' ) ;
44
Original file line number Diff line number Diff line change 1- const express = require ( 'express' )
1+ import express from 'express'
22const app = express ( )
33app . use ( express . json ( ) )
44
Original file line number Diff line number Diff line change 1- const { spawn } = require ( 'child_process' )
2- const http = require ( 'http' )
1+ import { spawn } from 'child_process'
2+ import http from 'http'
3+ import { fileURLToPath } from 'url'
4+ import { dirname } from 'path'
5+
6+ const __filename = fileURLToPath ( import . meta. url )
7+ const __dirname = dirname ( __filename )
38
49const PORT = process . env . PORT || 3001
510const MAX_RETRIES = 20
You can’t perform that action at this time.
0 commit comments