Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = config => {
config.set(
merge(defaultSettings(config), {
files: [
// allows running single tests with the --grep flag
config.grep ? config.grep : 'test/**/*.test.js',
],
// TODO: not yet within the 90% default
coverageIstanbulReporter: {
thresholds: {
global: {
statements: 80,
branches: 70,
functions: 70,
lines: 80,
},
},
},
module.exports = config => {
const files = config.grep ? [config.grep] : ['*.test.js'];
config.set(merge(defaultSettings(config), { files }));
return config;
};