briebug / jest-schematic

Angular schematic for adding Jest and the required files to an Angular CLI project
MIT License
322 stars 38 forks source link

Running `ng add @briebug/jest-schematic` on an Angular 15 project throws error #127

Closed Waterstraal closed 1 year ago

Waterstraal commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce

  1. npx @angular/cli@15 new angular-with-jest-test
  2. cd .\angular-with-jest-test\
  3. ng add @briebug/jest-schematic
  4. The following error is thrown: Cannot read properties of undefined (reading 'filter')

Expected behavior Jest is configured for an Angular 15 project

Screenshots image

Desktop (please complete the following information):

schuchard commented 1 year ago

128 should fix the issue. However, deployment is blocked by https://github.com/sindresorhus/np/pull/666

a1development commented 1 year ago

is there any workaround to get this running on my end?

schuchard commented 1 year ago

https://github.com/briebug/jest-schematic/releases/tag/v6.0.0 adds support for Angular 15. Please reopen if you still have an issue with v6. Thanks.