File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
packages/angular_devkit/build_angular/src/browser/specs Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -64,12 +64,15 @@ describe('Browser Builder errors', () => {
64
64
const run = await architect . scheduleTarget ( targetSpec , { aot : true } , { logger } ) ;
65
65
const output = await run . result ;
66
66
expect ( output . success ) . toBe ( false ) ;
67
+
68
+ // Wait for the builder to complete
69
+ await run . stop ( ) ;
70
+
67
71
if ( ! veEnabled ) {
68
72
expect ( logs . join ( ) ) . toContain ( 'selector must be a string' ) ;
69
73
} else {
70
74
expect ( logs . join ( ) ) . toContain ( 'Function expressions are not supported in' ) ;
71
75
}
72
- await run . stop ( ) ;
73
76
} ) ;
74
77
75
78
it ( 'shows missing export errors' , async ( ) => {
@@ -87,7 +90,10 @@ describe('Browser Builder errors', () => {
87
90
const run = await architect . scheduleTarget ( targetSpec , overrides , { logger } ) ;
88
91
const output = await run . result ;
89
92
expect ( output . success ) . toBe ( false ) ;
90
- expect ( logs . join ( ) ) . toContain ( `export 'missingExport' was not found in 'rxjs'` ) ;
93
+
94
+ // Wait for the builder to complete
91
95
await run . stop ( ) ;
96
+
97
+ expect ( logs . join ( ) ) . toContain ( `export 'missingExport' was not found in 'rxjs'` ) ;
92
98
} ) ;
93
99
} ) ;
You can’t perform that action at this time.
0 commit comments