forked from zkorum/agora
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
24 lines (23 loc) · 732 Bytes
/
Copy pathjest.config.js
File metadata and controls
24 lines (23 loc) · 732 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
/** @type {import('jest').Config} */
const config = {
// see https://kulshekhar.github.io/ts-jest/docs/guides/esm-support/#use-esm-presets
preset: "ts-jest/presets/default-esm", // or other ESM presets
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
},
transform: {
// '^.+\\.[tj]sx?$' to process js/ts with `ts-jest`
// '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest`
"^.+\\.tsx?$": [
"ts-jest",
{
useESM: true,
},
],
},
testEnvironment: "node",
roots: ["<rootDir>/tests"],
coveragePathIgnorePatterns: ["<rootDir>/__tests__", "<rootDir>/lib"],
verbose: true,
};
export default config;