jest.config.js
module.exports = { // eslint-disable-line
verbose: true,
setupTestFrameworkScriptFile: './src/setupTests.js',
collectCoverageFrom: [
'src/**/*.js',
],
testEnvironment: 'jsdom',
transform: {
'^.+\\.js?$': 'babel-jest',
},
testURL: 'http://localhost/',
moduleNameMapper: {
'^.+\\.(css|less|scss)$': 'babel-jest',
},
};