Open nikolas-nelson opened 2 years ago
You should add this to your jest.config.js
module.exports = {
testPathIgnorePatterns: ['e2e'],
preset: 'jest-preset-angular',
transformIgnorePatterns: ['node_modules/(?!@angular|@ngneat|fp-ts)'],
...
};
then I get TypeError: jest_1.createComponentFactory is not a function
same issue here...
I had the same issue with angular-12
and spectator-11
and solved it by downgrading spectator
to 8.3.2
.
I think it has something to do with the new angular package format.
ng-packagr/ng-packagr@cc59146
Is this an issue that will be fixed in any upcoming version of Spectator? I can't really introduce Spectator at my current company if we have to start using a version that's 3 major versions behind current. <3
I ran into this bug as well. Adding the jest.config changes suggested earlier and downgrading to v8.3.2 resolved the export issue but caused other breaking changes.
Trying to use spectator in my work project and when I run test (jest --watch ) I have this error:
Test suite failed to run
I tried few things what I found but no luck. Any suggestions how to fix this?
Angular 12.1.1 Ngrx 12.2 nrwl/angular 12.7 nrwl/jest 12.7 babel-eslint 10.1 jest 27.0.3
Thank you!