Skip to content

Commit

Permalink
test(@angular-devkit/build-angular): use experimental API For rebuild…
Browse files Browse the repository at this point in the history
… barrel test

The stable API only exists in 8.0+.
  • Loading branch information
clydin authored and mgechev committed Mar 30, 2019
1 parent 99ee7c0 commit 2a144a9
Showing 1 changed file with 3 additions and 5 deletions.
Expand Up @@ -339,7 +339,7 @@ describe('Browser Builder rebuilds', () => {
).toPromise().then(done, done.fail);
});

it('rebuilds on changes in barrel file dependency', async () => {
it('rebuilds on changes in barrel file dependency', (done) => {
host.writeMultipleFiles({
'src/index.ts': `export * from './interface'`,
'src/interface.ts': `export interface Foo { bar: boolean };`,
Expand All @@ -351,8 +351,7 @@ describe('Browser Builder rebuilds', () => {

const overrides = { watch: true, aot: false };
let buildNumber = 0;
const run = await architect.scheduleTarget(target, overrides);
await run.output.pipe(
runTargetSpec(host, browserTargetSpec, overrides, DefaultTimeout * 3).pipe(
debounceTime(1000),
tap((buildEvent) => {
buildNumber += 1;
Expand All @@ -373,7 +372,6 @@ describe('Browser Builder rebuilds', () => {
}
}),
take(2),
).toPromise();
await run.stop();
).toPromise().then(done, done.fail);
});
});

0 comments on commit 2a144a9

Please sign in to comment.