File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
packages/@angular/cli/tasks Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ export const E2eTask = Task.extend({
32
32
hostname : e2eTaskOptions . host ,
33
33
port : e2eTaskOptions . port . toString ( )
34
34
} ) ;
35
+ } else if ( e2eTaskOptions . baseHref ) {
36
+ additionalProtractorConfig . baseUrl = e2eTaskOptions . baseHref ;
35
37
}
36
38
37
39
if ( e2eTaskOptions . specs . length !== 0 ) {
Original file line number Diff line number Diff line change
1
+ import { ng , killAllProcesses } from '../../utils/process' ;
2
+ import { expectToFail } from '../../utils/utils' ;
3
+
4
+ export default function ( ) {
5
+ 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' ) )
9
+ . then ( ( ) => killAllProcesses ( ) , ( err : any ) => {
10
+ killAllProcesses ( ) ;
11
+ throw err ;
12
+ } ) ;
13
+ }
You can’t perform that action at this time.
0 commit comments