Added coverage threshold to jest configuration. (#7948)

This commit is contained in:
Nick Taylor 2020-05-19 10:00:48 -04:00 committed by GitHub
parent d15290420f
commit 7f8bb406c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,14 @@ module.exports = {
'!**/__tests__/**',
'!**/__stories__/**',
],
coverageThreshold: {
global: {
statements: 39,
branches: 35,
functions: 34,
lines: 39,
},
},
moduleNameMapper: {
'\\.(svg|png)$': '<rootDir>/empty-module.js',
'^@crayons(.*)$': '<rootDir>/app/javascript/crayons$1',