theatre/jest.config.js

21 lines
618 B
JavaScript
Raw Normal View History

2021-06-18 13:05:06 +02:00
module.exports = {
testMatch: [
'<rootDir>/packages/*/src/**/*.test.ts',
'<rootDir>/theatre/*/src/**/*.test.ts',
],
moduleNameMapper: {
2021-06-18 14:32:01 +02:00
...require('./devEnv/getAliasesFromTsConfig').getAliasesFromTsConfigForJest(),
2021-06-18 13:05:06 +02:00
'\\.(css)$': 'identity-obj-proxy',
'lodash-es/(.*)': 'lodash/$1',
'react-use/esm/(.*)': 'react-use/lib/$1',
'lodash-es': 'lodash',
},
setupFiles: ['./theatre/shared/src/setupTestEnv.ts'],
automock: false,
transform: {
'^.+\\.tsx?$': 'esbuild-jest',
'^.+\\.js$': 'esbuild-jest',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
}