Skip to content

Instantly share code, notes, and snippets.

@svierk
Created May 27, 2022 08:22
Show Gist options
  • Select an option

  • Save svierk/127c217eb1bcd9d5c209e2a74ec2cf20 to your computer and use it in GitHub Desktop.

Select an option

Save svierk/127c217eb1bcd9d5c209e2a74ec2cf20 to your computer and use it in GitHub Desktop.
Extended LWC Jest Configuration for SFDX Projects
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