Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Point to different coverage file

Reginald Bondoc8a209049c514
diff --git a/.github/workflows/be-test-report.yml b/.github/workflows/be-test-report.yml
index e95c05fda4..7abce1cb62 100644
--- a/.github/workflows/be-test-report.yml
+++ b/.github/workflows/be-test-report.yml
@@ -33,5 +33,5 @@ jobs:
id: coverage
with:
output: report-markdown
- coverage-file: coverage/report.json
+ coverage-file: coverage/coverage-final.json
working-directory: backend
diff --git a/backend/package.json b/backend/package.json
index e45ed85dc5..5f239aaf71 100644
--- a/backend/package.json
+++ b/backend/package.json
@@ -40,7 +40,7 @@
"lint-staged": "lint-staged",
"pretest": "docker compose -f test-resources/docker-compose.test.yml up -d",
"test": "cross-env NODE_ENV=test jest --testTimeout=10000 --detectOpenHandles",
- "test:ci": "npm test -- --watchAll=false --ci --reporters=default --reporters=jest-junit --coverage --testLocationInResults",
+ "test:ci": "npm test -- --watchAll=false --ci --reporters=default --reporters=jest-junit --reporters=github-actions --coverage --testLocationInResults",
"posttest": "docker compose -f test-resources/docker-compose.test.yml down"
},
"repository": {
@@ -83,8 +83,9 @@
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
- "coveragePathIgnorePatterns": [
- "/node_modules/"
+ "collectCoverageFrom": [
+ "src/*.{js,ts}",
+ "!**/node_modules/**"
],
"setupFiles": [
"<rootDir>/test-resources/env-vars.js"