You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Angular 14, jest and jest-preset-angular, testing with ESM, it fails when I try to use MockComponent. In the attached zip you can see a simple barebones project that has a single test file. The package.json uses the nasty node command that seems to be required for this.
I tried putting the mock in the imports as well, instead of the declarations, but it didn't seem to make a difference.
Description of the bug
When using Angular 14, jest and jest-preset-angular, testing with ESM, it fails when I try to use MockComponent. In the attached zip you can see a simple barebones project that has a single test file. The package.json uses the nasty node command that seems to be required for this.
I tried putting the mock in the imports as well, instead of the declarations, but it didn't seem to make a difference.
A repo with an example of the bug
foo.zip
The text was updated successfully, but these errors were encountered: