Error running jest with `--no-cache` after upgrading to Angular V14
See original GitHub issueDescribe the Bug
After upgrading to Angular V14. running tests with no-cache
throws an error
Error: Schema validation failed with the following errors:
Data path "/noCache" must be array.
error Command failed with exit code 1.
Minimal Reproduction
here the repo: https://github.com/Bil0/angular-builders-jest-cache
npm run test
to run ng test with --no-cache
Expected Behavior
tests should run with Angular V14.
Screenshots
Environment
Libs
@angular-devkit/architect 0.1401.2
@angular-devkit/build-angular 14.1.2
@angular-devkit/core 14.1.2
@angular-devkit/schematics 14.1.2
@schematics/angular 14.1.2
rxjs 7.5.6
typescript 4.7.4
@angular-builders/jest 14.0.0,
For Tooling issues:
- Node version: v16.13.1
- Platform: Windows
Additional Context
I think, it get mixed with the new ng cache
command
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
jest tests keep failing after upgrade to angular 13 and ... - GitHub
Running my tests should not give any errors after the upgrade to angular 13. Actual behavior. All my tests are failing after upgrading...
Read more >node test no longer working after update to Angular 14 from ...
After that we run node test for the project and we get the next error that didn't happened before update: Test suite failed...
Read more >Angular 14 + Jest: tests running fails with "Unknown arguments
1. Setup an Angular project with Jest as testing framework. · 2. Update Angular to v14. · 3. Update Jest to v28 ·...
Read more >cannot find module '@angular/core/testing' from ... - You.com
I'm trying to upgrade my angular 13 NX workspaces to angular 14, but somehow I can't get my jest unit tests to work...
Read more >ng cache - Angular
Angular CLI saves a number of cachable operations on disk by default. When you re-run the same build, the build system restores the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello, thanks for your response. I updated my project to use
14.0.2-beta.1
and I’m having the same error.I think
no-cache
is the conflicting command and notcache
. tested it by editing schema.json innode_modules
Fixed in
14.0.2
(Release version)