mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2024-11-21 03:15:49 +08:00
22 lines
458 B
JavaScript
22 lines
458 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$': 'jest-css-modules',
|
|
},
|
|
testEnvironment: 'jsdom',
|
|
};
|