LiveAtlas/jest.config.ts
SNDST00M: M.U.N.I.N 51ed4bfbd5
🆙 vue in jest.config
2021-10-10 11:19:03 +01:00

20 lines
320 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'
]
}