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
I'd like to configure storyshots so that it creates multiple snapshot files close to the actual story.
I found issue #887, it describes using jest-specifics-snapshop but it's for version 3.x and I cannot find any example or details in the documentation nor in the issue itself.
The documentation talks about multiSnapshotWithOptions which sounds promising but doesn't prevent my config creating one monolithic snapshot file.
I ran into the same issue today and tried to solve it by writing my own Stories2SnapsConverter, which lead me to discover that the fileName param on getSnapshotFileName is always null, causing snapshots file resolution to fallback to the default value.
This seems to be a bug in @storybook/addon-storyshots. I've managed to find a work around by adding parameters: {fileName: __filename}} to the default export on each story.js file.
I'd like to configure storyshots so that it creates multiple snapshot files close to the actual story.
I found issue #887, it describes using
jest-specifics-snapshop
but it's for version 3.x and I cannot find any example or details in the documentation nor in the issue itself.The documentation talks about
multiSnapshotWithOptions
which sounds promising but doesn't prevent my config creating one monolithic snapshot file.My Storyshots.test.ts file looks like this:
What do I miss and is it worth clarifying it to the documentation?
The text was updated successfully, but these errors were encountered: