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