From b64d4fbd01a3c10d80711338ae67cd3ae7f743c6 Mon Sep 17 00:00:00 2001 From: JGerla Date: Sat, 25 Oct 2025 13:54:18 +0200 Subject: [PATCH] chore: added test coverage collection updated the jest configuration to generate a coverage report on the entire project when tests are run. this coverage report has been added to the the gitignore file as it is not relevant to store it in the online repository. ref: N25B-114 --- .gitignore | 3 +++ jest.config.js | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a547bf3..4147656 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,6 @@ dist-ssr *.njsproj *.sln *.sw? + +# Coverage report +coverage \ No newline at end of file diff --git a/jest.config.js b/jest.config.js index ba73e36..819a05d 100644 --- a/jest.config.js +++ b/jest.config.js @@ -10,5 +10,7 @@ export default { testMatch: ['/test/**/*.test.(ts|tsx)'], transform: { '^.+\\.(ts|tsx)$': ['ts-jest', { useESM: true, tsconfig: 'tsconfig.jest.json' }] - } + }, + collectCoverage:true, + collectCoverageFrom: ['/src/**/*.{ts,tsx,js,jsx}'], }; \ No newline at end of file