File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
import {
2
2
ng ,
3
- exec ,
3
+ npm ,
4
4
execAndWaitForOutputToMatch ,
5
5
killAllProcesses
6
6
} from '../../utils/process' ;
7
+ import { updateJsonFile } from '../../utils/project' ;
7
8
import { expectToFail } from '../../utils/utils' ;
8
9
import { moveFile , copyFile } from '../../utils/fs' ;
9
10
10
11
11
12
export default function ( ) {
12
13
// Should fail without updated webdriver
13
- return exec ( './node_modules/.bin/webdriver-manager' , 'clean' )
14
+ return updateJsonFile ( 'package.json' , packageJson => {
15
+ // Add to npm scripts to make running the binary compatible with Windows
16
+ const scripts = packageJson [ 'scripts' ] ;
17
+ scripts [ 'wd:clean' ] = 'webdriver-manager clean' ;
18
+ } )
19
+ . then ( ( ) => npm ( 'run' , 'wd:clean' ) )
14
20
. then ( ( ) => expectToFail ( ( ) => ng ( 'e2e' , '--no-webdriver-update' , '--no-serve' ) ) )
15
21
// Should fail without serving
16
22
. then ( ( ) => expectToFail ( ( ) => ng ( 'e2e' , '--no-serve' ) ) )
You can’t perform that action at this time.
0 commit comments