1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-05 23:53:21 +00:00

Configure Codecov coverage and results (#569)

* Configure Codecov coverage and results

* Actually produce reports
This commit is contained in:
Matt Bishop
2024-08-30 16:48:13 -04:00
committed by GitHub
parent 14314a3553
commit d01522bfc4
4 changed files with 88 additions and 19 deletions

View File

@@ -11,6 +11,14 @@ module.exports = {
// ...angularPreset,
preset: "jest-preset-angular",
reporters: ["default", "jest-junit"],
collectCoverage: true,
// Ensure we collect coverage from files without tests
collectCoverageFrom: ["src/**/*.ts"],
coverageReporters: ["html", "lcov"],
coverageDirectory: "coverage",
testEnvironment: "jsdom",
testMatch: ["**/+(*.)+(spec).+(ts)"],