File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { ng , killAllProcesses } from '../../utils/process' ;
2
2
import { expectToFail } from '../../utils/utils' ;
3
+ import { ngServe } from '../../utils/project' ;
4
+ import { updateJsonFile } from '../../utils/project' ;
3
5
4
6
export default function ( ) {
5
7
return Promise . resolve ( )
6
- . then ( ( ) => ng ( 'serve' , '--port' , '4400' ) )
7
- . then ( ( ) => expectToFail ( ( ) => ng ( 'e2e' ) ) )
8
- . then ( ( ) => ng ( 'e2e' , '--no-serve' , '--base-url=http://localhost:4400' ) )
8
+ . then ( ( ) => expectToFail ( ( ) => ng ( 'e2e' , '--no-serve' ) ) )
9
+ . then ( ( ) => updateJsonFile ( '.angular-cli.json' , configJson => {
10
+ const app = configJson . defaults ;
11
+ app . serve = { port : 4400 } ;
12
+ } ) )
13
+ . then ( ( ) => ngServe ( ) )
14
+ . then ( ( ) => expectToFail ( ( ) => ng ( 'e2e' , '--no-serve' ) ) )
15
+ . then ( ( ) => ng ( 'e2e' , '--no-serve' , '--base-href=http://localhost:4400' ) )
9
16
. then ( ( ) => killAllProcesses ( ) , ( err : any ) => {
10
17
killAllProcesses ( ) ;
11
18
throw err ;
You can’t perform that action at this time.
0 commit comments