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
Using addon shoryshots with Angular 15 and jest-preset-angular 12.2.3 does not work, since the jest setup has changed:
src/app/storyshots.test.ts
● Test suite failed to run
Cannot find module 'jest-preset-angular/build/setup-jest' from 'node_modules/@storybook/addon-storyshots/dist/ts3.9/frameworks/angular/loader.js'
1 | import initStoryshots from '@storybook/addon-storyshots'
2 |
> 3 | initStoryshots({})
| ^
4 |
at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:425:11)
at setupAngularJestPreset (node_modules/@storybook/addon-storyshots/dist/ts3.9/frameworks/angular/loader.js:25:14)
at Object.load (node_modules/@storybook/addon-storyshots/dist/ts3.9/frameworks/angular/loader.js:32:5)
at Object.loadFramework [as default] (node_modules/@storybook/addon-storyshots/dist/ts3.9/frameworks/frameworkLoader.js:26:19)
at testStorySnapshots (node_modules/@storybook/addon-storyshots/dist/ts3.9/api/index.js:28:94)
at Object.<anonymous> (src/app/storyshots.test.ts:3:15)
We will not be making any improvement / changes to storyshots.
@ndelangen Can the storyshots readme be updated to reflect this? Or at least get it working for those who want to use it. I found the fixes for it. It should be a small PR.
Describe the bug
Using addon shoryshots with Angular 15 and jest-preset-angular 12.2.3 does not work, since the jest setup has changed:
To Reproduce
No response
System
No response
Additional context
The text was updated successfully, but these errors were encountered: