Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const path = require('path');
const {defaults} = require('jest-config');
module.exports = {
moduleFileExtensions: [...defaults.moduleFileExtensions],
testEnvironment: 'node',
collectCoverage: true,
coverageDirectory: path.join(__dirname, 'coverage'),
coverageReporters: [...defaults.coverageReporters, 'html'],
coveragePathIgnorePatterns: [...defaults.coveragePathIgnorePatterns, 'samples/'],
transform: {},
collectCoverageFrom: [
'**/*.{js}',
'!**/node_modules/**',
'!**/samples/**',
'!**/coverage/**',
'!jest.*'
]
};