-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I got an error when testing a component #81
Comments
Provide a minimal reproducible example. |
Will you be able to provide a reproduction? Or should this issue be closed? You can notice in our issues history that all users, who have provided reproduction to their issues, have also received bug fixes. I'm just not a fan of dangling issues with only pasted code, but w/o reproduction. 🙂 |
Please re-open when you have a minimal reproduction of the issue. |
I actually got same issue as the paradoxm. I have 1 unit test which doesnt raise this issue on the component which is decorated with UntilDestroy() The only difference I noticed - it happens whenever you override components to inject component providers after testmoduleconfigure and before compiling components. |
I got the same issue. Fixed by adding decorator to the all places (not only current one), where |
Hi! I wanted to write a test for a component and got an error
untilDestroyed operator cannot be used inside directives or components or providers that are not decorated with UntilDestroy decorator
.Tell me please, how should I test components with your
@UntilDestroy()
decorator?Component:
Spec:
Versions:
Angular: 9.0.4
Node: 10.13.0
Jasmine: 3.5.0
The text was updated successfully, but these errors were encountered: