mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-04 00:28:43 +08:00
24 lines
560 B
JavaScript
24 lines
560 B
JavaScript
const { default: tsjPreset } = require('ts-jest/presets');
|
|
module.exports = {
|
|
preset: 'ts-jest',
|
|
rootDir: './',
|
|
transform: {
|
|
...tsjPreset.transform
|
|
},
|
|
testRegex: '(/test/.*\\.(test|spec))\\.[tj]sx?$',
|
|
moduleFileExtensions: [
|
|
"ts",
|
|
"tsx",
|
|
"js",
|
|
"jsx"
|
|
],
|
|
moduleNameWrapper: {
|
|
'^@APP/(.*)$': '<rootDir>/src/douban/$1'
|
|
},
|
|
collectCoverageFrom: {
|
|
"**/baseTs/upperFirst.ts",
|
|
"**/baseTs/camelCase.ts",
|
|
"!**/node_modules/**",
|
|
"!**/vendor/**"
|
|
}
|
|
} |