1 Star 0 Fork 393

徐年 / element-plus

forked from element-plus / element-plus 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jest.config.js 745 Bytes
一键复制 编辑 原始数据 按行查看 历史
/**
* @type import('@jest/types').Config.InitialOptions
*/
module.exports = {
setupFiles: ['./jest.setup.js'],
testMatch: [
'**/__tests__/**/*.[jt]s?(x)',
'**/?(*.)+(spec|test).[jt]s?(x)',
'!**/**vitest**',
],
testPathIgnorePatterns: ['/node_modules/', 'dist'],
modulePathIgnorePatterns: ['/node_modules/', 'dist', 'cypress'],
testEnvironment: 'jsdom',
transform: {
'\\.[jt]sx?$': 'babel-jest',
'^.+\\.vue$': '<rootDir>/internal/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>'],
}
JavaScript
1
https://gitee.com/zhoushing/element-plus.git
git@gitee.com:zhoushing/element-plus.git
zhoushing
element-plus
element-plus
dev

搜索帮助