-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathjest.config.js
More file actions
31 lines (28 loc) · 895 Bytes
/
jest.config.js
File metadata and controls
31 lines (28 loc) · 895 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
/**********************************************************************
* Copyright (c) 2026 Red Hat, Inc.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
***********************************************************************/
/* eslint-disable header/header */
//@ts-check
export const preset = 'ts-jest';
export const testEnvironment = 'node';
export const roots = ['<rootDir>/tests'];
export const collectCoverage = true;
export const globals = {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.jest.json'
}
};
export const moduleNameMapper = {
'^vscode$': '<rootDir>/tests/__mocks__/vscode.ts'
};
export const collectCoverageFrom = [
"src/**/*.ts",
"!src/**/*.d.ts",
"!tests/**",
]