-
Notifications
You must be signed in to change notification settings - Fork 214
Expand file tree
/
Copy pathjest.config.js
More file actions
27 lines (26 loc) · 972 Bytes
/
jest.config.js
File metadata and controls
27 lines (26 loc) · 972 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
/*
* Copyright (c) 2021, 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
*/
// eslint-disable-next-line @typescript-eslint/no-var-requires
const base = require('internal-lib-build/configs/jest/jest.config')
module.exports = {
...base,
coverageThreshold: {
global: {
branches: 60,
functions: 80,
lines: 75,
statements: 75
}
},
testPathIgnorePatterns: ['bin/*', 'coverage/*', 'dist/*', 'node_modules/*', 'scripts/*'],
collectCoverageFrom: ['src/**', '!src/ssr/server/test_fixtures/*', '!src/**/*-placeholder'],
coveragePathIgnorePatterns: [
'^index\\.ts$', // Don't put code in index files!
'-placeholder\\.ts$' // Ignore Placeholder files
],
setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect']
}