1 Star 0 Fork 202

大天使/nutui

forked from 京东零售/nutui 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
jest.config.js 573 Bytes
一键复制 编辑 原始数据 按行查看 历史
崽崽不哭 提交于 2021-06-04 10:46 +08:00 . fix: shortpassword 单元测试 (#486)
module.exports = {
moduleFileExtensions: ['vue', 'js', 'ts'],
preset: 'ts-jest',
testEnvironment: 'jsdom',
transform: {
'^.+\\.vue$': 'vue-jest', // vue 文件用 vue-jest 转换
'^.+\\.ts$': 'ts-jest' // ts 文件用 ts-jest 转换
},
// 匹配 __tests__ 目录下的 .js/.ts 文件 或其他目录下的 xx.test.js/ts xx.spec.js/ts
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(ts)$',
//testRegex: '__tests__.action.spec.ts',
// 支持源代码中相同的 `@` -> `src` 别名
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1'
}
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/TANHUIXING/nutui.git
git@gitee.com:TANHUIXING/nutui.git
TANHUIXING
nutui
nutui
next

搜索帮助