-
Notifications
You must be signed in to change notification settings - Fork 304
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
[Bug]: Jest failed to parse a file in Angular 14 #1839
Comments
You can check this
our example folder contains basic setup which works for most of projects. The error is about jest doesn’t understand the file and we need to explicitly tell Jest to transform it |
I actually looked at that example before, but somehow missed that. My bad. In the test that passes, there are no components from this library Edit: AsyncScheduler is part of rxjs |
Very likely related to #1199 |
Version
12.2.2
Steps to reproduce
I'm having this issue in a project generated with Angular 11 and updated to Angular 14, but I managed to reproduce it in a project generated with Angular 13 and updated to Angular 14.
I did my research before creating this bug report, but all I've tried did not work for me.
Expected behavior
Test should run
Actual behavior
Tests fail and this error is shown:
Additional context
I tried changing the module in tsconfig to CommonJs, setting up ts-jest, changing transform setting in jest.config, and a number of different things I have found online.
I have not been able to find a solution that works to me. I've also followed this guide: https://thymikee.github.io/jest-preset-angular/docs/guides/angular-13+/
Environment
The text was updated successfully, but these errors were encountered: