-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
41 lines (41 loc) · 1.06 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
// SPDX-FileCopyrightText: 2022 Johannes Loher
//
// SPDX-License-Identifier: MIT
//
export default {
// [...]
transform: {
// '^.+\\.[tj]sx?$' to process js/ts with `ts-jest`
// '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest`
"^.+\\.[tj]sx?$": [
"ts-jest",
{
tsconfig: "<rootDir>/test/tsconfig.json",
},
],
},
reporters: [
"default",
[
"./node_modules/jest-html-reporter",
{
pageTitle: "Test Report",
},
],
],
moduleNameMapper: {
"@assets/(.*)": "<rootDir>/src/assets/$1",
"@actor/(.*)": "<rootDir>/src/module/actor/$1",
"@actor": "<rootDir>/src/module/actor/",
"@item/(.*)": "<rootDir>/src/module/item/$1",
"@item": "<rootDir>/src/module/item/",
"@feature/(.*)": "<rootDir>/src/module/feature/$1",
"@feature": "<rootDir>/src/module/feature/",
"@prereq/(.*)": "<rootDir>/src/module/prereq/$1",
"@prereq": "<rootDir>/src/module/prereq/",
"@module/(.*)": "<rootDir>/src/module/$1",
"@scripts/(.*)": "<rootDir>/src/scripts/$1",
"@util/(.*)": "<rootDir>/src/util/$1",
"@util": "<rootDir>/src/util/",
},
}