-
Notifications
You must be signed in to change notification settings - Fork 22
/
jest.config.js
27 lines (26 loc) · 994 Bytes
/
jest.config.js
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) 2020, 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
*/
/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
coverageThreshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: 80,
},
},
testEnvironment: 'jsdom',
testRunner: 'jest-jasmine2',
testMatch: ['**/__tests__/**/*.[jt]s?(x)'],
// Custom results processor for a11y results. Only affects JSON results file output.
// To be used with jest cli options --json --outputFile
// * e.g. jest --json --outputFile jestResults.json
// Ref: https://jestjs.io/docs/configuration#testresultsprocessor-string
testResultsProcessor: '<rootDir>/packages/jest/dist/resultsProcessor.js',
setupFilesAfterEnv: ['./jest.setup.js'],
};