From a719a5637d98a42084cee99c8af4f7ea2ad86463 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Thu, 14 Mar 2024 13:28:33 -0400 Subject: [PATCH] build(jest): enable coverage on runs --- jest.config.js | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/jest.config.js b/jest.config.js index f412fe027..f5802abaf 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,19 +1,18 @@ const config = { - "preset": "ts-jest/presets/js-with-ts", - "setupFiles": [ - "/src/__helpers__/setupEnvVars.js" - ], - "testEnvironment": "jsdom", - "coverageThreshold": { - "global": { - "lines": 90 - } + preset: 'ts-jest/presets/js-with-ts', + setupFiles: ['/src/__helpers__/setupEnvVars.js'], + testEnvironment: 'jsdom', + collectCoverage: true, + coverageThreshold: { + global: { + lines: 90, + }, }, - "moduleNameMapper": { + moduleNameMapper: { // Force CommonJS build for http adapter to be available. // via https://github.com/axios/axios/issues/5101#issuecomment-1276572468 '^axios$': require.resolve('axios'), }, -} +}; module.exports = config;