2021-11-24 01:41:30 +01:00
|
|
|
/* eslint-disable import/unambiguous */
|
|
|
|
module.exports = {
|
2021-11-30 19:22:07 +01:00
|
|
|
coverageDirectory: './jest-coverage/storybook',
|
2021-12-01 19:46:34 +01:00
|
|
|
coverageReporters: ['html', 'text-summary'],
|
2021-11-24 01:41:30 +01:00
|
|
|
// TODO: enable resetMocks
|
|
|
|
// resetMocks: true,
|
|
|
|
restoreMocks: true,
|
|
|
|
setupFiles: ['<rootDir>/test/setup.js', '<rootDir>/test/env.js'],
|
|
|
|
setupFilesAfterEnv: ['<rootDir>/test/jest/setup.js'],
|
|
|
|
testMatch: ['<rootDir>/ui/**/*stories.test.js'],
|
|
|
|
testTimeout: 2500,
|
|
|
|
transform: {
|
|
|
|
'^.+\\.[tj]sx?$': 'babel-jest',
|
|
|
|
'^.+\\.mdx$': '@storybook/addon-docs/jest-transform-mdx',
|
|
|
|
},
|
2022-08-23 22:13:02 +02:00
|
|
|
testEnvironment: 'jsdom',
|
2021-11-24 01:41:30 +01:00
|
|
|
};
|