sakura/jest.config.js

14 lines
296 B
JavaScript
Raw Normal View History

2021-07-09 18:28:29 +08:00
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',
},
}