Skip to content

Commit b610c8e

Browse files
filipesilvaJonathan Jayet
authored and
Jonathan Jayet
committed
chore(test): add failing build test (angular#2366)
Add test for angular#2360
1 parent 32839bb commit b610c8e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/e2e/tests/build/fail-build.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import {ng} from '../../utils/process';
2+
import {expectToFail} from '../../utils/utils';
3+
import {deleteFile} from '../../utils/fs';
4+
5+
export default function() {
6+
return deleteFile('src/app/app.component.ts')
7+
// This is supposed to fail since there's a missing file
8+
.then(() => expectToFail(() => ng('build')));
9+
}

0 commit comments

Comments
 (0)