2023-02-13 17:13:07 +01:00
|
|
|
const { getJestConfig } = require('@storybook/test-runner')
|
|
|
|
|
2023-11-13 15:32:10 +01:00
|
|
|
/**
|
|
|
|
* @type {import('@jest/types').Config.InitialOptions}
|
|
|
|
*/
|
2023-02-13 17:13:07 +01:00
|
|
|
module.exports = {
|
|
|
|
// The default configuration comes from @storybook/test-runner
|
|
|
|
...getJestConfig(),
|
|
|
|
/** Add your own overrides below
|
|
|
|
* @see https://jestjs.io/docs/configuration
|
|
|
|
*/
|
|
|
|
forceExit: true,
|
2023-11-13 15:32:10 +01:00
|
|
|
// For jest-image-snapshot, see https://github.com/americanexpress/jest-image-snapshot#removing-outdated-snapshots
|
2023-02-24 20:33:39 +01:00
|
|
|
reporters: ['default', 'jest-image-snapshot/src/outdated-snapshot-reporter.js'],
|
2023-11-13 15:32:10 +01:00
|
|
|
testEnvironment: './test-runner-jest-environment.js',
|
2023-02-13 17:13:07 +01:00
|
|
|
}
|