21 lines
348 B
TypeScript
21 lines
348 B
TypeScript
export default {
|
|
preset: 'ts-jest',
|
|
moduleFileExtensions: [
|
|
'js',
|
|
'ts',
|
|
'json',
|
|
'vue'
|
|
],
|
|
transform: {
|
|
'^.+\\.ts$': 'ts-jest',
|
|
'^.+\\.vue$': '@vue/vue3-jest'
|
|
},
|
|
moduleNameMapper: {
|
|
'^@/(.*)$': '<rootDir>/src/$1',
|
|
},
|
|
setupFilesAfterEnv: [
|
|
'<rootDir>/tests/setup.ts'
|
|
],
|
|
testEnvironment: 'jsdom'
|
|
}
|