Skip to content

Commit 5895105

Browse files
committed
test(@angular-devkit/build-angular): reduce build time in browser builder watch test
This change removes application code during the test which is not needed for the watch option test.
1 parent 2041c70 commit 5895105

File tree

1 file changed

+5
-0
lines changed
  • packages/angular_devkit/build_angular/src/browser/tests/options

1 file changed

+5
-0
lines changed

packages/angular_devkit/build_angular/src/browser/tests/options/watch_spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ import { BASE_OPTIONS, BROWSER_BUILDER_INFO, describeBuilder } from '../setup';
1111

1212
describeBuilder(buildWebpackBrowser, BROWSER_BUILDER_INFO, (harness) => {
1313
describe('Option: "watch"', () => {
14+
beforeEach(async () => {
15+
// Application code is not needed for these tests
16+
await harness.writeFile('src/main.ts', '');
17+
});
18+
1419
it('does not wait for file changes when false', (done) => {
1520
harness.useTarget('build', {
1621
...BASE_OPTIONS,

0 commit comments

Comments
 (0)