forked from SalesforceCommerceCloud/commerce-sdk-isomorphic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
29 lines (28 loc) · 769 Bytes
/
jest.config.js
File metadata and controls
29 lines (28 loc) · 769 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
/*
* Copyright (c) 2025, Salesforce, Inc.
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
module.exports = {
setupFilesAfterEnv: ['<rootDir>/src/test/setupTests.ts'],
collectCoverageFrom: [
'src/static/**/*.{js,jsx,ts,tsx}',
'scripts/**/*.{js,jsx,ts,tsx}',
'!scripts/generate.ts',
'!scripts/generateFileList.ts',
'!scripts/updateApis.ts',
'!scripts/generateVersionTable.ts',
'!src/static/fileList.ts',
'!<rootDir>/node_modules/',
],
coverageReporters: ['text'],
coverageThreshold: {
global: {
branches: 90,
functions: 90,
lines: 90,
statements: 90,
},
},
};