104 Star 1.2K Fork 222

GVPvant / vant-weapp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
jest.config.js 561 Bytes
一键复制 编辑 原始数据 按行查看 历史
nemo-shen 提交于 2021-12-13 23:44 . fix(jest): adjust config
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']
}
JavaScript
1
https://gitee.com/vant-contrib/vant-weapp.git
git@gitee.com:vant-contrib/vant-weapp.git
vant-contrib
vant-weapp
vant-weapp
dev

搜索帮助