jest.config.js
module.exports = {
testEnvironment: 'node',
testPathIgnorePatterns: ['/node_modules/', '/tests/__helpers'],
collectCoverage: true,
coverageReporters: ['text', 'lcov'],
collectCoverageFrom: ['src/**/*.js'],
watchPathIgnorePatterns: [
'<rootDir>/node_nodules/',
'<rootDir>/lib/',
'<rootDir>/coverage/',
],
testResultsProcessor: 'jest-sonar-reporter',
};