From 653fdffcfd49f9662a2475cf21148f47adc163eb Mon Sep 17 00:00:00 2001 From: Matt Bishop Date: Fri, 30 Aug 2024 16:31:24 -0400 Subject: [PATCH] Actually produce reports --- jest.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/jest.config.js b/jest.config.js index 5aad2b0aa..94b2cd7ea 100644 --- a/jest.config.js +++ b/jest.config.js @@ -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)"],