mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 11:17:46 +08:00
18 lines
621 B
JavaScript
18 lines
621 B
JavaScript
/**
|
|
* @type import('@jest/types').Config.InitialOptions
|
|
*/
|
|
module.exports = {
|
|
setupFiles: ['./jest.setup.js'],
|
|
testPathIgnorePatterns: ['/node_modules/', 'dist'],
|
|
modulePathIgnorePatterns: ['/node_modules/', 'dist', 'cypress'],
|
|
testEnvironment: 'jsdom',
|
|
transform: {
|
|
'\\.[jt]sx?$': 'babel-jest',
|
|
'^.+\\.vue$': '<rootDir>/build/vue-jest-transformer.js',
|
|
},
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'json', 'vue'],
|
|
// u can change this option to a more specific folder for test single component or util when dev
|
|
// for example, ['<rootDir>/packages/components/input']
|
|
roots: ['<rootDir>'],
|
|
}
|