forked from AzureAD/microsoft-authentication-library-for-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.cjs
More file actions
22 lines (21 loc) · 665 Bytes
/
jest.config.cjs
File metadata and controls
22 lines (21 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
module.exports = {
verbose: true,
moduleFileExtensions: ["ts", "tsx", "js", "json", "jsx", "node"],
testMatch: ["<rootDir>/test/**/*.spec.ts"],
transform: {
"^.+\\.(ts|tsx)$": "ts-jest",
},
/**
* "Not a ts-jest issue" but a jest one. Consider vitest?
* this morphs "./some/relative/path.js" to "./some/relative/path"
* https://github.com/kulshekhar/ts-jest/issues/1057
*/
moduleNameMapper: {
"^(\\.\\.?\\/.+)\\.js$": "$1",
},
coverageReporters: [["lcov", { projectRoot: "../../" }]],
};