jest.config.js
module.exports = {
testEnvironment: 'node',
testPathIgnorePatterns: ['/node_modules/', '/fake-repo/'],
collectCoverageFrom: ['src/**/*.js'],
reporters: [
'default',
[
'./node_modules/jest-html-reporter',
{
pageTitle: 'Test Report',
includeFailureMsg: true,
sort: 'status',
},
],
],
}