question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error running jest with `--no-cache` after upgrading to Angular V14

See original GitHub issue

Describe 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

no-cache

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:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Bil0commented, Oct 20, 2022

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 not cache. tested it by editing schema.json in node_modules

0reactions
just-jebcommented, Oct 31, 2022

Fixed in 14.0.2 (Release version)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found