2021-09-22 18:59:50 +08:00
|
|
|
const path = require('path');
|
2021-09-07 13:44:48 +08:00
|
|
|
module.exports = {
|
2021-09-22 18:59:50 +08:00
|
|
|
...require('../../config/jest.config'),
|
|
|
|
moduleFileExtensions: ['ts', 'js', 'tsx'],
|
|
|
|
testEnvironment: 'jsdom',
|
|
|
|
transform: {
|
|
|
|
'^.+\\.[jt]sx?$': [
|
|
|
|
'babel-jest',
|
|
|
|
{
|
2022-06-07 14:37:36 +08:00
|
|
|
configFile: path.resolve(__dirname, '../../config/babel.react.config.js'),
|
2021-09-22 18:59:50 +08:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2022-06-07 14:37:36 +08:00
|
|
|
moduleNameMapper: {
|
|
|
|
'\\.(css|less)$': '<rootDir>/__tests__/styleMock.js',
|
|
|
|
},
|
2021-09-22 18:59:50 +08:00
|
|
|
testEnvironment: 'jsdom',
|
2021-09-07 13:44:48 +08:00
|
|
|
};
|