-
Notifications
You must be signed in to change notification settings - Fork 10
/
jest.config.js
46 lines (46 loc) · 2.12 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
module.exports = {
testEnvironment: "node",
testRunner: "jest-jasmine2", // https://github.com/jestjs/jest/issues/11698
roots: [
"<rootDir>/packages/release-script/src",
"<rootDir>/packages/core/src",
"<rootDir>/packages/plugin-changelog/src",
"<rootDir>/packages/plugin-exec/src",
"<rootDir>/packages/plugin-git/src",
"<rootDir>/packages/plugin-iobroker/src",
"<rootDir>/packages/plugin-lerna/src",
"<rootDir>/packages/plugin-license/src",
"<rootDir>/packages/plugin-manual-review/src",
"<rootDir>/packages/plugin-package/src",
"<rootDir>/packages/plugin-version/src",
// Add others as necessary
],
testRegex: "(.|/)test.tsx?$",
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
moduleNameMapper: {
"^@alcalzone/release-script-core(.*)": "<rootDir>/packages/core/src$1",
"^@alcalzone/release-script-plugin-changelog(.*)":
"<rootDir>/packages/plugin-changelog/src$1",
"^@alcalzone/release-script-plugin-exec(.*)": "<rootDir>/packages/plugin-exec/src$1",
"^@alcalzone/release-script-plugin-git(.*)": "<rootDir>/packages/plugin-git/src$1",
"^@alcalzone/release-script-plugin-iobroker(.*)":
"<rootDir>/packages/plugin-iobroker/src$1",
"^@alcalzone/release-script-plugin-lerna(.*)": "<rootDir>/packages/plugin-lerna/src$1",
"^@alcalzone/release-script-plugin-license(.*)": "<rootDir>/packages/plugin-license/src$1",
"^@alcalzone/release-script-plugin-manual-review(.*)":
"<rootDir>/packages/plugin-manual-review/src$1",
"^@alcalzone/release-script-plugin-package(.*)": "<rootDir>/packages/plugin-package/src$1",
"^@alcalzone/release-script-plugin-version(.*)": "<rootDir>/packages/plugin-version/src$1",
"^@alcalzone/release-script-testing(.*)": "<rootDir>/packages/testing/src$1",
"^@alcalzone/release-script-(.*)/package.json": "<rootDir>/packages/$1/package.json",
// Add others as necessary
},
setupFilesAfterEnv: ["jest-extended/all"],
setupFiles: ["./test/jest.setup.js"],
collectCoverage: false,
collectCoverageFrom: ["packages/**/src/**/*.ts", "!packages/**/src/**/*.test.ts"],
coverageReporters: ["lcov", "html", "text-summary"],
transform: {
"^.+\\.tsx?$": "babel-jest",
},
};