0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-30 19:41:46 +01:00
posthog/test-runner-jest.config.js

17 lines
613 B
JavaScript
Raw Normal View History

const { getJestConfig } = require('@storybook/test-runner')
/**
* @type {import('@jest/types').Config.InitialOptions}
*/
module.exports = {
// The default configuration comes from @storybook/test-runner
...getJestConfig(),
/** Add your own overrides below
* @see https://jestjs.io/docs/configuration
*/
forceExit: true,
// For jest-image-snapshot, see https://github.com/americanexpress/jest-image-snapshot#removing-outdated-snapshots
reporters: ['default', 'jest-image-snapshot/src/outdated-snapshot-reporter.js'],
testEnvironment: './test-runner-jest-environment.js',
}