Notify 473: add code coverage for jest (#488)

This commit is contained in:
Andrew Shumway
2023-05-02 14:38:28 -06:00
committed by GitHub
parent 3f44877c8b
commit 575c2b7d75
3 changed files with 24 additions and 1 deletions

View File

@@ -1,7 +1,17 @@
module.exports = {
collectCoverage: true,
coverageDirectory: './coverage',
coverageThreshold: {
global: {
branches: 75,
functions: 90,
lines: 90,
statements: 90,
}
},
setupFiles: ['./support/setup.js'],
testEnvironment: 'jsdom',
testEnvironmentOptions: {
url: 'https://www.notifications.service.gov.uk',
},
}
};