mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 10:22:44 +08:00
* fix: test init * test(Button): add unit test * fix(test): remove unused code * test(build): remove demo/test dir when compile * fix(Button): remove duplicate demo * test(Button): adjust component.json
19 lines
507 B
JavaScript
19 lines
507 B
JavaScript
module.exports = {
|
|
bail: 1,
|
|
verbose: true,
|
|
testEnvironment: 'jsdom',
|
|
testURL: 'https://jest.test',
|
|
moduleFileExtensions: ['js', 'ts'],
|
|
testMatch: ['<rootDir>/packages/**/test/**/*.spec.{js,ts}'],
|
|
transform: {
|
|
"^.+\\.jsx?$": "babel-jest", // Adding this line solved the issue
|
|
"^.+\\.tsx?$": "ts-jest"
|
|
},
|
|
collectCoverageFrom: [
|
|
'<rootDir>/packages/**/*.{js,ts}',
|
|
'!**/test/**'
|
|
],
|
|
preset: "ts-jest",
|
|
snapshotSerializers: ['miniprogram-simulate/jest-snapshot-plugin'],
|
|
}
|