-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.ts
53 lines (51 loc) · 1.25 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* Copyright© 2024 Ronan LE MEILLAT for SCTG Development,
* Association High Can Fly and Les Ailes du Mont-Blanc
*
* Up2Pay is free software: you can redistribute it and/or modify
* it under the terms of the Affero General Public License version 3 as
* published by the Free Software Foundation.
*
* Up2Pay is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Affero General Public License for more details.
*
* You should have received a copy of the Affero General Public License
* along with Up2Pay. If not, see <https://www.gnu.org/licenses/agpl-3.0.html>.
*/
import type {Config} from 'jest';
const config: Config = {
verbose: true,
collectCoverage: true,
testEnvironment: "node",
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
roots: [
"<rootDir>/src"
],
collectCoverageFrom: [
"src/**/*.ts"
],
coverageReporters: [
"html",
"text",
"lcov"
],
transform: {
"^.+\\.ts$": "ts-jest"
},
moduleFileExtensions: [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
globals: {
'ts-jest': {
isolatedModules: true
}
}
};
export default config;