@@ -12,7 +12,7 @@ for (const isolation of ['none', 'process']) {
12
12
// File not found.
13
13
const args = [
14
14
'--test' ,
15
- `--experimental- test-isolation=${ isolation } ` ,
15
+ `--test-isolation=${ isolation } ` ,
16
16
'a-random-file-that-does-not-exist.js' ,
17
17
] ;
18
18
const child = spawnSync ( process . execPath , args ) ;
@@ -27,7 +27,7 @@ for (const isolation of ['none', 'process']) {
27
27
// Default behavior. node_modules is ignored. Files that don't match the
28
28
// pattern are ignored except in test/ directories.
29
29
const args = [ '--test' , '--test-reporter=tap' ,
30
- `--experimental- test-isolation=${ isolation } ` ] ;
30
+ `--test-isolation=${ isolation } ` ] ;
31
31
const child = spawnSync ( process . execPath , args , { cwd : join ( testFixtures , 'default-behavior' ) } ) ;
32
32
33
33
assert . strictEqual ( child . status , 1 ) ;
@@ -46,7 +46,7 @@ for (const isolation of ['none', 'process']) {
46
46
{
47
47
// Should match files with "-test.(c|m)js" suffix.
48
48
const args = [ '--test' , '--test-reporter=tap' ,
49
- `--experimental- test-isolation=${ isolation } ` ] ;
49
+ `--test-isolation=${ isolation } ` ] ;
50
50
const child = spawnSync ( process . execPath , args , { cwd : join ( testFixtures , 'matching-patterns' ) } ) ;
51
51
52
52
assert . strictEqual ( child . status , 0 ) ;
@@ -64,7 +64,7 @@ for (const isolation of ['none', 'process']) {
64
64
for ( const type of [ 'strip' , 'transform' ] ) {
65
65
// Should match files with "-test.(c|m)(t|j)s" suffix when typescript support is enabled
66
66
const args = [ '--test' , '--test-reporter=tap' , '--no-warnings' ,
67
- `--experimental-${ type } -types` , `--experimental- test-isolation=${ isolation } ` ] ;
67
+ `--experimental-${ type } -types` , `--test-isolation=${ isolation } ` ] ;
68
68
const child = spawnSync ( process . execPath , args , { cwd : join ( testFixtures , 'matching-patterns' ) } ) ;
69
69
70
70
if ( ! process . config . variables . node_use_amaro ) {
@@ -91,7 +91,7 @@ for (const isolation of ['none', 'process']) {
91
91
'--require' , join ( testFixtures , 'protoMutation.js' ) ,
92
92
'--test' ,
93
93
'--test-reporter=tap' ,
94
- `--experimental- test-isolation=${ isolation } ` ,
94
+ `--test-isolation=${ isolation } ` ,
95
95
] ;
96
96
const child = spawnSync ( process . execPath , args , { cwd : join ( testFixtures , 'default-behavior' ) } ) ;
97
97
@@ -112,7 +112,7 @@ for (const isolation of ['none', 'process']) {
112
112
const args = [
113
113
'--test' ,
114
114
'--test-reporter=tap' ,
115
- `--experimental- test-isolation=${ isolation } ` ,
115
+ `--test-isolation=${ isolation } ` ,
116
116
join ( testFixtures , 'index.js' ) ,
117
117
] ;
118
118
const child = spawnSync ( process . execPath , args , { cwd : testFixtures } ) ;
@@ -129,7 +129,7 @@ for (const isolation of ['none', 'process']) {
129
129
const args = [
130
130
'--test' ,
131
131
'--test-reporter=tap' ,
132
- `--experimental- test-isolation=${ isolation } ` ,
132
+ `--test-isolation=${ isolation } ` ,
133
133
join ( testFixtures , 'default-behavior/node_modules/*.js' ) ,
134
134
] ;
135
135
const child = spawnSync ( process . execPath , args ) ;
@@ -143,7 +143,7 @@ for (const isolation of ['none', 'process']) {
143
143
144
144
{
145
145
// The current directory is used by default.
146
- const args = [ '--test' , `--experimental- test-isolation=${ isolation } ` ] ;
146
+ const args = [ '--test' , `--test-isolation=${ isolation } ` ] ;
147
147
const options = { cwd : join ( testFixtures , 'default-behavior' ) } ;
148
148
const child = spawnSync ( process . execPath , args , options ) ;
149
149
@@ -165,7 +165,7 @@ for (const isolation of ['none', 'process']) {
165
165
const args = [
166
166
'--test' ,
167
167
'--test-reporter=tap' ,
168
- `--experimental- test-isolation=${ isolation } ` ,
168
+ `--test-isolation=${ isolation } ` ,
169
169
'test/fixtures/test-runner/default-behavior/index.test.js' ,
170
170
'test/fixtures/test-runner/nested.js' ,
171
171
'test/fixtures/test-runner/invalid-tap.js' ,
0 commit comments