Skip to content

Commit d66caba

Browse files
committed
feat: update CI to run coverage tests and set global coverage thresholds
1 parent 0ffb3e2 commit d66caba

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: npm ci
2626

2727
- name: Run Tests
28-
run: npm run test
28+
run: npm run test:cov -- --verbose
2929
env:
3030
JWT_SECRET: ${{ secrets.JWT_SECRET }} # GitHub Secrets para seguridad
3131

backend/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@
9292
"testEnvironment": "node",
9393
"moduleNameMapper": {
9494
"^src/(.*)$": "<rootDir>/$1"
95+
},
96+
"coverageThreshold": {
97+
"global": {
98+
"branches": 85,
99+
"functions": 85,
100+
"lines": 85,
101+
"statements": 85
102+
}
95103
}
96104
}
97105
}

0 commit comments

Comments
 (0)