We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi @satanTime, When I use MockBuilder to test a XComponent included in a RouterModule.forChild route with a YComponent. I get this error :
Error: Component YComponent is not part of any NgModule or the module has not been imported into your module.
To remove error, I should mock the YComponent manually. You can see the error in StackBlitz. The code works fine in production.
angular.json Production : projects -> demo -> architect -> build -> options -> main -> src/main.ts Testing : projects -> demo -> architect -> build -> options -> main -> src/main-testing.ts
src/main.ts
src/main-testing.ts
Thanks in advance. Best regards. Cyril
The text was updated successfully, but these errors were encountered:
Hi again,
I hope you are doing great.
Thanks for the report. I'll take a look this weekend and release an update on Sunday.
Sorry, something went wrong.
I'm on vacation for two weeks starting tonight. So I could not test before my return.
No worries, take your time and have fun!
Thanks
fix: mocking imports after declarations
ab3aa6f
closes #178
satanTime
Successfully merging a pull request may close this issue.
Hi @satanTime,
When I use MockBuilder to test a XComponent included in a RouterModule.forChild route with a YComponent.
I get this error :
Error: Component YComponent is not part of any NgModule or the module has not been imported into your module.
To remove error, I should mock the YComponent manually.
You can see the error in StackBlitz.
The code works fine in production.
Thanks in advance.
Best regards.
Cyril
The text was updated successfully, but these errors were encountered: