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
The test fails with cannot read property 'triggerEventhandler' of undefined, checking the content of the whole debug element it is apparent that the structural directive of is not resolved and the template blank.
With 5.0.7 this works as expected
Expected behavior
Component unit tests should be working with standalone components like it was in 5.0.7
Please provide a link to a minimal reproduction of the bug, if you won't provide a link the issue won't be handled.
Coudn't find a working example that executes test pls tryout code provided above
Transloco Config
No response
Please provide the environment you discovered this bug in
I have a similar issue where my structural directive is not being resolved. I tried reproducing the issue using a stackblitz but this time the structural directive was resolved however the text wasn't translated:
Is there an existing issue for this?
Which Transloco package(s) are the source of the bug?
Transloco
Is this a regression?
Yes
Current behavior
A simple component like this, fails the unit tests when trying to access the content of the template with V6. It works fine with 5.0.7
Template:
Component:
Test:
The test fails with cannot read property 'triggerEventhandler' of undefined, checking the content of the whole debug element it is apparent that the structural directive of is not resolved and the template blank.
With 5.0.7 this works as expected
Expected behavior
Component unit tests should be working with standalone components like it was in 5.0.7
Please provide a link to a minimal reproduction of the bug, if you won't provide a link the issue won't be handled.
Coudn't find a working example that executes test pls tryout code provided above
Transloco Config
No response
Please provide the environment you discovered this bug in
Browser
No response
Additional context
Interestingly this error occurs only when using the transloco structural directive. When using normal directive everything runs fine.
I would like to make a pull request for this bug
No
The text was updated successfully, but these errors were encountered: