@@ -37,15 +37,17 @@ function getCoverageFixtureReport() {
3737 return report ;
3838}
3939
40- test ( '--test-coverage and --test cannot be combined' , ( ) => {
40+ test ( '--experimental- test-coverage and --test cannot be combined' , ( ) => {
4141 // TODO(cjihrig): This test can be removed once multi-process code coverage
4242 // is supported.
43- const result = spawnSync ( process . execPath , [ '--test' , '--test-coverage' ] ) ;
43+ const args = [ '--test' , '--experimental-test-coverage' ] ;
44+ const result = spawnSync ( process . execPath , args ) ;
4445
4546 // 9 is the documented exit code for an invalid CLI argument.
4647 assert . strictEqual ( result . status , 9 ) ;
4748 assert . match (
48- result . stderr . toString ( ) , / - - t e s t - c o v e r a g e c a n n o t b e u s e d w i t h - - t e s t /
49+ result . stderr . toString ( ) ,
50+ / - - e x p e r i m e n t a l - t e s t - c o v e r a g e c a n n o t b e u s e d w i t h - - t e s t /
4951 ) ;
5052} ) ;
5153
@@ -55,7 +57,7 @@ test('handles the inspector not being available', (t) => {
5557 }
5658
5759 const fixture = fixtures . path ( 'test-runner' , 'coverage.js' ) ;
58- const args = [ '--test-coverage' , fixture ] ;
60+ const args = [ '--experimental- test-coverage' , fixture ] ;
5961 const result = spawnSync ( process . execPath , args ) ;
6062
6163 assert ( ! result . stdout . toString ( ) . includes ( '# start of coverage report' ) ) ;
@@ -70,7 +72,7 @@ test('coverage is reported and dumped to NODE_V8_COVERAGE if present', (t) => {
7072 }
7173
7274 const fixture = fixtures . path ( 'test-runner' , 'coverage.js' ) ;
73- const args = [ '--test-coverage' , fixture ] ;
75+ const args = [ '--experimental- test-coverage' , fixture ] ;
7476 const options = { env : { ...process . env , NODE_V8_COVERAGE : tmpdir . path } } ;
7577 const result = spawnSync ( process . execPath , args , options ) ;
7678 const report = getCoverageFixtureReport ( ) ;
@@ -87,7 +89,7 @@ test('coverage is reported without NODE_V8_COVERAGE present', (t) => {
8789 }
8890
8991 const fixture = fixtures . path ( 'test-runner' , 'coverage.js' ) ;
90- const args = [ '--test-coverage' , fixture ] ;
92+ const args = [ '--experimental- test-coverage' , fixture ] ;
9193 const result = spawnSync ( process . execPath , args ) ;
9294 const report = getCoverageFixtureReport ( ) ;
9395
0 commit comments