-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjest.config.js
33 lines (29 loc) · 932 Bytes
/
jest.config.js
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
31
32
33
// const base = require("./jest.config.base.js");
// export default {
// ...base,
// projectsx:
// [
// "<rootDir>/packages/*/jest.config.js"
// ],
// coverageDirectory: "<rootDir>/coverage/"
// };
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html
// module.exports = {
// globals: { skipBabel: true },
// preset: "ts-jest",
// testEnvironment: "node",
// testMatch: ["**/__tests__/**/*.ts"],
// // testPathIgnorePatterns: ["/node_modules/", "/output/"]
// };
module.exports = {
// clearMocks: true,
coverageDirectory: "coverage",
coverageReporters: ["html", "text"],
moduleFileExtensions: ["ts", "js", "json", "html"],
// projects: ["<rootDir>/packages/*"],
testEnvironment: "node",
testTimeout: 30000,
testMatch: ["**/__tests__/**/*.ts"],
transform: { "^.+\\.(ts|js|json|html)$": "ts-jest" },
};