You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ambient directives and unit tests with TestComponentBuilder #5433
I'm getting errors about platform directives like ng-for when using TestComponentBuilder. Seems like they're not "ambient" in the unit tests like they are during normal execution. I can fix it by including CORE_DIRECTIVES in the component, but that seems backward. Any ideas how to make them available?
changed the title [-]Ambient and unit tests with TestComponentBuilder[/-][+]Ambient directives and unit tests with TestComponentBuilder[/+]on Nov 24, 2015
Activity
[-]Ambient and unit tests with TestComponentBuilder[/-][+]Ambient directives and unit tests with TestComponentBuilder[/+]tbosch commentedon Dec 3, 2015
Same is true for platform pipes
juliemr commentedon Dec 16, 2015
Related to #5351
There's a fix in #5937
juliemr commentedon Dec 17, 2015
Note the design at #5351
I'm not closing this as a duplicate since it's a more precise issue than the one that #5351 tries to solve, and is easier to search for.
stefanocke commentedon Jan 15, 2016
As a workaround, the following worked for me:
So one can at least avoid to add the core directives in the components and keep the workaround in the test scripts.
juliemr commentedon Jan 15, 2016
This is fixed with b0cebdb
Foxandxss commentedon Jan 16, 2016
That is not released yet, right?
pkozlowski-opensource commentedon Jan 16, 2016
Nope, just landed in master, will be part of beta.2
angular-automatic-lock-bot commentedon Sep 7, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.