Tests are not isolated when overriding a deferred component and aot
is set to true true
#61229
Labels
area: testing
Issues related to Angular testing features, such as TestBed
core: defer
Issues related to @defer blocks.
Milestone
When the unit tests are run with the
aot: true
option.Overrides on deferred componenents have side effects on others tests.
Repro : https://stackblitz.com/edit/angular-defer-test-compile?file=src%2Fapp%2Fapp.spec.ts
This test has no override, but it suffers from the side effects of the following one.
The following test overrides the template of
Foo
, the deferred component.Unit test repro
The text was updated successfully, but these errors were encountered: