mirror of
https://github.com/mashirozx/sakura.git
synced 2024-11-25 16:28:12 +08:00
14 lines
296 B
JavaScript
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',
|
||
|
},
|
||
|
}
|