mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-04-12 21:50:23 +08:00
19 lines
451 B
JavaScript
19 lines
451 B
JavaScript
const path = require('path');
|
|
module.exports = {
|
|
...require('../../config/jest.config'),
|
|
moduleFileExtensions: ['ts', 'js', 'tsx'],
|
|
testEnvironment: 'jsdom',
|
|
transform: {
|
|
'^.+\\.[jt]sx?$': [
|
|
'babel-jest',
|
|
{
|
|
configFile: path.resolve(__dirname, '../../config/babel.react.config.js'),
|
|
},
|
|
],
|
|
},
|
|
moduleNameMapper: {
|
|
'\\.(css|less)$': '<rootDir>/__tests__/styleMock.js',
|
|
},
|
|
testEnvironment: 'jsdom',
|
|
};
|