forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathe2e-baseurl.ts
More file actions
24 lines (21 loc) · 950 Bytes
/
e2e-baseurl.ts
File metadata and controls
24 lines (21 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { ng, killAllProcesses } from '../../utils/process';
import { expectToFail } from '../../utils/utils';
import { ngServe } from '../../utils/project';
import { updateJsonFile } from '../../utils/project';
export default function () {
// TODO(architect): Figure out why this test is not working.
return;
return Promise.resolve()
.then(() => expectToFail(() => ng('e2e', 'test-project-e2e', '--devServerTarget=')))
.then(() => updateJsonFile('angular.json', workspaceJson => {
const appArchitect = workspaceJson.projects['test-project'].architect;
appArchitect.serve.options.port = 4400;
}))
.then(() => ngServe())
.then(() => ng('e2e', 'test-project-e2e', '--devServerTarget=', '--base-url=http://localhost:4400'))
.then(() => ng('e2e', 'test-project-e2e', '--devServerTarget=', '--port=4400'))
.then(() => killAllProcesses(), (err: any) => {
killAllProcesses();
throw err;
});
}