2021-09-10 14:32:48 +00:00
|
|
|
export default {
|
|
|
|
preset: 'ts-jest',
|
|
|
|
moduleFileExtensions: [
|
|
|
|
'js',
|
|
|
|
'ts',
|
|
|
|
'json',
|
|
|
|
'vue'
|
|
|
|
],
|
|
|
|
transform: {
|
|
|
|
'^.+\\.ts$': 'ts-jest',
|
2021-10-10 10:19:03 +00:00
|
|
|
'^.+\\.vue$': '@vue/vue3-jest'
|
2021-09-10 14:32:48 +00:00
|
|
|
},
|
|
|
|
moduleNameMapper: {
|
|
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
|
|
},
|
|
|
|
setupFilesAfterEnv: [
|
|
|
|
'<rootDir>/tests/setup.ts'
|
|
|
|
]
|
|
|
|
}
|