From 968c653aead9d6c6b1551813b2cc1931377c02a6 Mon Sep 17 00:00:00 2001 From: Jon Ursenbach Date: Wed, 1 Feb 2023 12:30:08 -0800 Subject: [PATCH] ci: fix code coverage in github actions (#741) * ci: fix code coverage in github actions * ci: attempting to fix code coverage in ci * ci: debugging * ci: debug * fix: removing a line * fix: switching to a text-only summary * chore: remove an unnecessary config change --- jest.config.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/jest.config.js b/jest.config.js index 3f986a46b..19119d954 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,7 +1,7 @@ /** @type {import('ts-jest').JestConfigWithTsJest} */ - module.exports = { - coveragePathIgnorePatterns: ['/dist', '/node_modules'], + coveragePathIgnorePatterns: ['/dist', '/node_modules'], + coverageReporters: ['text'], coverageThreshold: { global: { branches: 80, @@ -10,9 +10,8 @@ module.exports = { statements: 90, }, }, - modulePaths: [''], modulePathIgnorePatterns: ['/dist/'], - roots: [''], + rootDir: __dirname, setupFiles: ['./__tests__/setup'], setupFilesAfterEnv: ['jest-extended/all'], testPathIgnorePatterns: [