1 Star 0 Fork 0

leehave/vue-weapp-dev

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jest.config.js 561 Bytes
一键复制 编辑 原始数据 按行查看 历史
lizhixiang 提交于 2024-09-20 18:07 . dev: 基础组件添加
module.exports = {
bail: 1,
verbose: true,
testEnvironment: 'jsdom',
testURL: 'https://jest.test',
moduleFileExtensions: ['js', 'ts'],
testMatch: ['<rootDir>/packages/**/test/**/*.spec.{js,ts}'],
transformIgnorePatterns: ["/node_modules/(?!@vant/)"],
transform: {
"^.+\\.js?$": "babel-jest", // Adding this line solved the issue
"^.+\\.ts?$": "ts-jest"
},
collectCoverageFrom: [
'<rootDir>/packages/**/*.{js,ts}',
'!**/test/**'
],
preset: "ts-jest",
snapshotSerializers: ['miniprogram-simulate/jest-snapshot-plugin']
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/leehave_admin/vue-weapp-dev.git
[email protected]:leehave_admin/vue-weapp-dev.git
leehave_admin
vue-weapp-dev
vue-weapp-dev
main

搜索帮助