sakura/jest.config.js
2021-07-09 18:28:29 +08:00

14 lines
296 B
JavaScript

module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
moduleNameMapper: {
'@/(.*)$': '<rootDir>/src/$1',
// '^vue$': 'vue/dist/vue.esm-bundler.js',
},
transform: {
'^.+\\.vue$': 'vue-jest',
// '^.+\\js$': 'babel-jest',
'^.+\\.(t|j)sx?$': 'ts-jest',
},
}