generated from svierk/sfdx-project-starter-kit
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
21 lines (20 loc) · 570 Bytes
/
jest.config.js
File metadata and controls
21 lines (20 loc) · 570 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const { jestConfig } = require('@salesforce/sfdx-lwc-jest/config');
const setupFilesAfterEnv = jestConfig.setupFilesAfterEnv || [];
setupFilesAfterEnv.push('<rootDir>/jest-sa11y-setup.js');
module.exports = {
...jestConfig,
testRegex: '/__tests__/.*.test.js$',
coverageReporters: ['clover', 'json', 'text', 'lcov', 'cobertura'],
modulePathIgnorePatterns: ['/.localdevserver'],
reporters: [
'default',
[
'jest-junit',
{
outputDirectory: 'tests',
outputName: 'test-results-lwc.xml'
}
]
],
setupFilesAfterEnv
};