LiveAtlas/jest.config.ts

21 lines
348 B
TypeScript
Raw Normal View History

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'
2021-12-09 00:38:25 +00:00
],
testEnvironment: 'jsdom'
2021-09-10 14:32:48 +00:00
}