From 0d68e47e16c72677c821833e36f7f27f5b5f53ec Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 5 Apr 2022 09:22:47 -0400 Subject: [PATCH] Setup for Test Coverage badge --- .gitignore | 1 + jest.config.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1d36a4816..138e96d05 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /tmp/ /build/ /coverage/ +/.coverage/ /.eslintcache /.env /deploy.sh diff --git a/jest.config.js b/jest.config.js index 7b36443e5..d4369336b 100644 --- a/jest.config.js +++ b/jest.config.js @@ -24,7 +24,8 @@ module.exports = { '!app/soapbox/jest/test-setup.ts', '!app/soapbox/jest/test-helpers.ts', ], - 'coverageDirectory': '/coverage', + 'coverageDirectory': '/.coverage/', + 'coverageReporters': ['html', 'text', 'text-summary', 'cobertura'], 'moduleDirectories': [ '/node_modules', '/app',