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;