-
Notifications
You must be signed in to change notification settings - Fork 214
Expand file tree
/
Copy pathjest.config.js
More file actions
28 lines (26 loc) · 815 Bytes
/
jest.config.js
File metadata and controls
28 lines (26 loc) · 815 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
/*
* Copyright (c) 2025, salesforce.com, 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
*/
const path = require('path')
// eslint-disable-next-line @typescript-eslint/no-var-requires
const base = require('@salesforce/pwa-kit-dev/configs/jest/jest.config.js')
module.exports = {
...base,
moduleNameMapper: {
...base.moduleNameMapper,
// handle pwa-kit extensibility special import
'^overridable!(.*)': '$1'
},
setupFilesAfterEnv: [path.join(__dirname, 'jest-setup.js')],
coverageThreshold: {
global: {
branches: 87,
functions: 100,
lines: 100,
statements: 100
}
}
}