-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
24 lines (23 loc) · 610 Bytes
/
jest.config.js
File metadata and controls
24 lines (23 loc) · 610 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
/*!
* Copyright (c) 2026 Oleksii Serdiuk
* SPDX-License-Identifier: BSD-3-Clause
*/
module.exports = {
preset: "ts-jest",
testEnvironment: "node",
roots: ["<rootDir>/tests"],
testMatch: ["**/?(*.)+(spec|test).ts"],
moduleFileExtensions: ["ts", "js", "json"],
transform: {
"^.+\\.ts$": [
"ts-jest",
{
tsconfig: "tsconfig.test.json",
},
],
},
collectCoverageFrom: ["src/**/*.ts", "!src/**/*.d.ts", "!src/**/index.ts"],
coverageDirectory: "test-results",
coveragePathIgnorePatterns: ["/node_modules/", "/dist/"],
coverageReporters: ["lcov", "text"],
};