sunmao-ui/packages/chakra-ui-lib/jest.config.js
2021-12-21 20:42:44 +08:00

19 lines
396 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'
),
},
],
},
testEnvironment: 'jsdom',
};