From ff8241b2131b8d43ca12dba01cbe8db4409ad026 Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Tue, 27 Sep 2016 18:21:05 +0100 Subject: [PATCH] chore(test): add failing build test (#2366) Add test for https://github.com/angular/angular-cli/pull/2360 --- tests/e2e/tests/build/fail-build.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/e2e/tests/build/fail-build.ts diff --git a/tests/e2e/tests/build/fail-build.ts b/tests/e2e/tests/build/fail-build.ts new file mode 100644 index 000000000000..3bbc8eff3158 --- /dev/null +++ b/tests/e2e/tests/build/fail-build.ts @@ -0,0 +1,9 @@ +import {ng} from '../../utils/process'; +import {expectToFail} from '../../utils/utils'; +import {deleteFile} from '../../utils/fs'; + +export default function() { + return deleteFile('src/app/app.component.ts') + // This is supposed to fail since there's a missing file + .then(() => expectToFail(() => ng('build'))); +}