@@ -5,7 +5,7 @@ const { run } = require('../utils/test-utils');
5
5
6
6
describe ( 'output flag defaults' , ( ) => {
7
7
it ( 'should create default file for a given directory' , ( done ) => {
8
- const { stdout } = run ( __dirname , [ '--entry' , './a.js' , '--output' , './binary' ] , false ) ;
8
+ const { stdout } = run ( __dirname , [ '--entry' , './a.js' , '--output-path ' , './binary' ] , false ) ;
9
9
// Should not print warning about config fallback, as we have production as default
10
10
expect ( stdout ) . not . toContain ( 'option has not been set, webpack will fallback to' ) ;
11
11
stat ( resolve ( __dirname , './binary/main.js' ) , ( err , stats ) => {
@@ -26,7 +26,7 @@ describe('output flag defaults', () => {
26
26
} ) ;
27
27
28
28
it ( 'throw error on empty output flag' , ( ) => {
29
- const { stderr } = run ( __dirname , [ '--entry' , './a.js' , '--output' ] , false ) ;
30
- expect ( stderr ) . toContain ( "error: option '-o, --output <value>' argument missing" ) ;
29
+ const { stderr } = run ( __dirname , [ '--entry' , './a.js' , '--output-path ' ] , false ) ;
30
+ expect ( stderr ) . toContain ( "error: option '-o, --output-path <value>' argument missing" ) ;
31
31
} ) ;
32
32
} ) ;
0 commit comments