Skip to content

Commit

Permalink
[skip ci] update snapshot resolver recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Oct 31, 2023
1 parent 538cc4e commit 1ba363f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,20 @@ When running with `--stories-json`, tests get generated in a temporary folder an
```js
// ./test-runner-jest.config.js
const { getJestConfig } = require('@storybook/test-runner');

/**
* @type {import('@jest/types').Config.InitialOptions}
*/
module.exports = {
// The default configuration comes from @storybook/test-runner
...getJestConfig(),
snapshotResolver: './snapshot-resolver.js',
};
```
```js
// ./snapshot-resolver.js
const path = require('path');

module.exports = {
Expand Down

0 comments on commit 1ba363f

Please sign in to comment.