Skip to content

Commit cec4252

Browse files
authored
test: add --nobuild flag (angular#4718)
1 parent 469ca91 commit cec4252

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

tests/e2e/setup/010-build.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ const packages = require('../../../lib/packages');
88
export default function() {
99
const argv = getGlobalVariable('argv');
1010

11+
if (argv.nobuild) {
12+
return;
13+
}
14+
1115
return npm('run', 'build')
1216
.then(() => console.log('Updating package.json from dist...'))
1317
.then(() => Promise.all(Object.keys(packages).map(pkgName => {

tests/e2e_runner.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Error.stackTraceLimit = Infinity;
2525
* Here's a short description of those flags:
2626
* --debug If a test fails, block the thread so the temporary directory isn't deleted.
2727
* --noproject Skip creating a project or using one.
28+
* --nobuild Skip building the packages. Use with --nolink and --reuse to quickly
29+
* rerun tests.
2830
* --nolink Skip linking your local @angular/cli directory. Can save a few seconds.
2931
* --ng-sha=SHA Use a specific ng-sha. Similar to nightly but point to a master SHA instead
3032
* of using the latest.

0 commit comments

Comments
 (0)