-
Notifications
You must be signed in to change notification settings - Fork 217
Expand file tree
/
Copy pathjest.config.js
More file actions
33 lines (33 loc) · 988 Bytes
/
jest.config.js
File metadata and controls
33 lines (33 loc) · 988 Bytes
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 os = require("os");
module.exports = {
preset: "ts-jest",
transform: {
"^.+\\.(t|j)sx?$": "@swc/jest",
},
moduleNameMapper: {
"^@/(.*)$": "<rootDir>/src/$1",
},
testEnvironment: "allure-jest/node",
testEnvironmentOptions: {
resultsDir: "allure-results",
links: {
issue: {
nameTemplate: "Issue #%s",
urlTemplate: "https://github.com/tact-lang/tact/issues/%s",
},
},
environmentInfo: {
os_platform: os.platform(),
os_release: os.release(),
os_version: os.version(),
node_version: process.version,
},
},
testPathIgnorePatterns: ["/node_modules/", "/dist/"],
globalSetup: "./jest.globalSetup.js",
setupFiles: ["./jest.setup.js"],
globalTeardown: "./jest.teardown.js",
snapshotSerializers: ["@tact-lang/ton-jest/serializers"],
maxWorkers: "4",
testTimeout: 10000,
};