@@ -57,7 +57,7 @@ test('globalSetup is triggered once before all test suites', () => {
57
57
const setupPath = path . join ( e2eDir , 'setup.js' ) ;
58
58
const result = runWithJson ( e2eDir , [
59
59
`--globalSetup=${ setupPath } ` ,
60
- ` --testPathPattern=__tests__` ,
60
+ ' --testPathPattern=__tests__' ,
61
61
] ) ;
62
62
63
63
expect ( result . exitCode ) . toBe ( 0 ) ;
@@ -71,7 +71,7 @@ test('jest throws an error when globalSetup does not export a function', () => {
71
71
const setupPath = path . resolve ( __dirname , '../global-setup/invalidSetup.js' ) ;
72
72
const { exitCode, stderr} = runJest ( e2eDir , [
73
73
`--globalSetup=${ setupPath } ` ,
74
- ` --testPathPattern=__tests__` ,
74
+ ' --testPathPattern=__tests__' ,
75
75
] ) ;
76
76
77
77
expect ( exitCode ) . toBe ( 1 ) ;
@@ -155,7 +155,7 @@ test('globalSetup throws with named export', () => {
155
155
156
156
const { exitCode, stderr} = runJest ( e2eDir , [
157
157
`--globalSetup=${ setupPath } ` ,
158
- ` --testPathPattern=__tests__` ,
158
+ ' --testPathPattern=__tests__' ,
159
159
] ) ;
160
160
161
161
expect ( exitCode ) . toBe ( 1 ) ;
@@ -166,13 +166,13 @@ test('globalSetup throws with named export', () => {
166
166
} ) ;
167
167
168
168
test ( 'should not transpile the transformer' , ( ) => {
169
- const { exitCode} = runJest ( 'global-setup-custom-transform' , [ ` --no-cache` ] ) ;
169
+ const { exitCode} = runJest ( 'global-setup-custom-transform' , [ ' --no-cache' ] ) ;
170
170
171
171
expect ( exitCode ) . toBe ( 0 ) ;
172
172
} ) ;
173
173
174
174
test ( 'should transform node_modules if configured by transformIgnorePatterns' , ( ) => {
175
- const { exitCode} = runJest ( 'global-setup-node-modules' , [ ` --no-cache` ] ) ;
175
+ const { exitCode} = runJest ( 'global-setup-node-modules' , [ ' --no-cache' ] ) ;
176
176
177
177
expect ( exitCode ) . toBe ( 0 ) ;
178
178
} ) ;
@@ -190,7 +190,7 @@ test('properly handle rejections', () => {
190
190
` ,
191
191
} ) ;
192
192
193
- const { exitCode, stderr} = runJest ( rejectionDir , [ ` --no-cache` ] ) ;
193
+ const { exitCode, stderr} = runJest ( rejectionDir , [ ' --no-cache' ] ) ;
194
194
195
195
expect ( exitCode ) . toBe ( 1 ) ;
196
196
expect ( stderr ) . toContain ( 'Error: Jest: Got error running globalSetup' ) ;
@@ -199,7 +199,7 @@ test('properly handle rejections', () => {
199
199
200
200
onNodeVersions ( '>=12.17.0' , ( ) => {
201
201
test ( 'globalSetup works with ESM modules' , ( ) => {
202
- const { exitCode} = runJest ( 'global-setup-esm' , [ ` --no-cache` ] , {
202
+ const { exitCode} = runJest ( 'global-setup-esm' , [ ' --no-cache' ] , {
203
203
nodeOptions : '--experimental-vm-modules --no-warnings' ,
204
204
} ) ;
205
205
0 commit comments