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

Jest: Console errors in Tests #488

Open
PacMM79 opened this issue Nov 28, 2024 · 0 comments
Open

Jest: Console errors in Tests #488

PacMM79 opened this issue Nov 28, 2024 · 0 comments
Assignees

Comments

@PacMM79
Copy link
Collaborator

PacMM79 commented Nov 28, 2024

Console errors and warns showed in Jest: (npm test --coverage)

console.error
NG0303: Can't bind to 'formGroup' since it isn't a known property of 'form' (used in the 'StarterFiltersComponent' component template).

** Same console errors for:
StarterFiltersComponent, PaginationComponent, FiltersModalComponent

  • console.warn
    NG0313: Multiple pipes match the name translate in the 'ChallengeCardComponent' component. check the imports of this module.

  • console.warn

        Importing "setup-jest.js" directly is deprecated. The file "setup-jest.js" will be removed in the future.                                                                                                
        Please use "setupZoneTestEnv" function instead. Example:                                                                                                                                                 
                                                                                                                                                                                                                 
        // setup-jest.ts                                                                                                                                                                                         
        import { setupZoneTestEnv } from 'jest-preset-angular/setup-env/zone';                                                                                                                                   
                                                                                                                                                                                                                 
        setupZoneTestEnv();   
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant