fix: 单测的一些注释和配置顺序更改

This commit is contained in:
chenjinsong
2023-01-10 14:08:00 +08:00
parent a608ac72f6
commit dfcc03f11a
4 changed files with 10 additions and 5 deletions

View File

@@ -2,12 +2,12 @@ module.exports = {
roots: [
'<rootDir>/test'
],
verbose: true,
setupFilesAfterEnv: ['<rootDir>/test/init.js'],
testMatch: [
'<rootDir>/test/**/__tests__/**/*.{vue,js,jsx,ts,tsx}',
'<rootDir>/test/**/*.{spec,test}.{vue,js,jsx,ts,tsx}'
],
setupFilesAfterEnv: ['<rootDir>/test/init.js'],
verbose: true,
testEnvironment: 'jsdom',
transform: {
'^.+\\.(vue)$': '<rootDir>/node_modules/vue-jest',