-
Notifications
You must be signed in to change notification settings - Fork 9
/
jest.config.ts
30 lines (28 loc) · 758 Bytes
/
jest.config.ts
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
28
29
30
// module.exports = {
// roots: ["<rootDir>/src"],
// testMatch: [
// "**/__tests__/**/*.+(ts|tsx|js)",
// "**/?(*.)+(spec|test).+(ts|tsx|js)",
// ],
// transform: {
// "^.+\\.(ts|tsx)$": "ts-jest",
// },
// };
import type { Config } from "@jest/types";
import { defaults } from "jest-config";
const config: Config.InitialOptions = {
preset: "ts-jest",
verbose: true,
testEnvironment: "node",
roots: ["<rootDir>/src"],
moduleFileExtensions: [...defaults.moduleFileExtensions, "ts", "tsx"],
testPathIgnorePatterns: ["<rootDir>/node_modules/"],
transform: {
"^.+\\.(ts|tsx)$": "ts-jest",
},
testMatch: [
"**/__tests__/**/*.+(ts|tsx|js)",
"**/?(*.)+(spec|test).+(ts|tsx|js)",
],
};
export default config;