Created
May 27, 2022 08:22
-
-
Save svierk/127c217eb1bcd9d5c209e2a74ec2cf20 to your computer and use it in GitHub Desktop.
Extended LWC Jest Configuration for SFDX Projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { jestConfig } = require('@salesforce/sfdx-lwc-jest/config'); | |
| module.exports = { | |
| ...jestConfig, | |
| coverageReporters: ['clover', 'json', 'text', 'lcov', 'cobertura'], | |
| modulePathIgnorePatterns: ['/.localdevserver'], | |
| reporters: [ | |
| 'default', | |
| [ | |
| 'jest-junit', | |
| { | |
| outputDirectory: 'tests', | |
| outputName: 'test-results-lwc.xml' | |
| } | |
| ] | |
| ] | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment