forked from omnivore-app/obsidian-omnivore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
27 lines (21 loc) · 696 Bytes
/
jest.config.js
File metadata and controls
27 lines (21 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module.exports = {
// The test environment that Jest will use
testEnvironment: "node",
// The root directory for Jest tests
roots: ["<rootDir>/src"],
// The file extensions Jest will look for
moduleFileExtensions: ["ts", "js"],
// The test regex pattern to match test files
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
// The module name mapper to resolve module paths
moduleNameMapper: {
"^obsidian$": "<rootDir>/src/__mocks__/obsidian.ts",
},
// The transform config for TypeScript files
transform: {
"^.+\\.tsx?$": "ts-jest",
},
// The coverage report config
collectCoverage: true,
coverageDirectory: "<rootDir>/coverage",
};