mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 10:33:43 +08:00
test(@angular-devkit/build-angular): ensure jobs are complete before checking logs
This commit is contained in:
parent
5ba886cbb5
commit
a986d8ab63
@ -64,12 +64,15 @@ describe('Browser Builder errors', () => {
|
||||
const run = await architect.scheduleTarget(targetSpec, { aot: true }, { logger });
|
||||
const output = await run.result;
|
||||
expect(output.success).toBe(false);
|
||||
|
||||
// Wait for the builder to complete
|
||||
await run.stop();
|
||||
|
||||
if (!veEnabled) {
|
||||
expect(logs.join()).toContain('selector must be a string');
|
||||
} else {
|
||||
expect(logs.join()).toContain('Function expressions are not supported in');
|
||||
}
|
||||
await run.stop();
|
||||
});
|
||||
|
||||
it('shows missing export errors', async () => {
|
||||
@ -87,7 +90,10 @@ describe('Browser Builder errors', () => {
|
||||
const run = await architect.scheduleTarget(targetSpec, overrides, { logger });
|
||||
const output = await run.result;
|
||||
expect(output.success).toBe(false);
|
||||
expect(logs.join()).toContain(`export 'missingExport' was not found in 'rxjs'`);
|
||||
|
||||
// Wait for the builder to complete
|
||||
await run.stop();
|
||||
|
||||
expect(logs.join()).toContain(`export 'missingExport' was not found in 'rxjs'`);
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user