Skip to content
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

Angular testing passes but logs thousands of lines of errors #8554

Closed
garethbowen opened this issue Sep 17, 2023 · 1 comment
Closed

Angular testing passes but logs thousands of lines of errors #8554

garethbowen opened this issue Sep 17, 2023 · 1 comment
Assignees
Labels
Type: Technical issue Improve something that users won't notice
Milestone

Comments

@garethbowen
Copy link
Member

Describe the issue

Running npm run unit -- --watch=false in the webapp dir logs thousands of lines of errors like the one below which makes it hard to see failing tests.

 ERROR: 'NG0304: 'mm-messages-more-menu' is not a known element (used in the 'MessagesComponent' component template):
1. If 'mm-messages-more-menu' is an Angular component, then verify that it is a part of an @NgModule where this component is declared.
2. If 'mm-messages-more-menu' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.'

Example build: https://github.com/medic/cht-core/actions/runs/6210774070/job/16859344259#step:10:3827

Describe the improvement you'd like

Fix the test setup to resolve these errors.

@garethbowen garethbowen added the Type: Technical issue Improve something that users won't notice label Sep 17, 2023
@garethbowen garethbowen self-assigned this Oct 24, 2023
@garethbowen garethbowen added this to the 4.5.0 milestone Oct 25, 2023
@garethbowen
Copy link
Member Author

Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Technical issue Improve something that users won't notice
Projects
None yet
Development

No branches or pull requests

1 participant