From 2893947b6e99f539ccbbe2b488ce5d4b20aeb4f9 Mon Sep 17 00:00:00 2001 From: Steffen Deusch Date: Sat, 17 Feb 2024 18:01:13 +0100 Subject: [PATCH] add default jest reporter back --- assets/jest.config.js | 25 ++++++++++++------------- test/e2e/tests/issues/3117.spec.js | 2 +- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/assets/jest.config.js b/assets/jest.config.js index a93d49bdcd..6c94495301 100644 --- a/assets/jest.config.js +++ b/assets/jest.config.js @@ -39,18 +39,6 @@ module.exports = { // A list of reporter names that Jest uses when writing coverage reports coverageReporters: ["none"], - reporters: [ - ["jest-monocart-coverage", { - name: "Phoenix LiveView JS Unit Coverage", - reports: [ - ["raw", {outputDir: "./raw"}], - ["v8"], - ["console-summary"] - ], - outputDir: "./coverage" - }] - ], - // An object that configures minimum threshold enforcement for coverage results // coverageThreshold: undefined, @@ -114,7 +102,18 @@ module.exports = { // projects: undefined, // Use this configuration option to add custom reporters to Jest - // reporters: undefined, + reporters: [ + "default", + ["jest-monocart-coverage", { + name: "Phoenix LiveView JS Unit Coverage", + reports: [ + ["raw", {outputDir: "./raw"}], + ["v8"], + ["console-summary"] + ], + outputDir: "./coverage" + }] + ], // Automatically reset mock state between every test // resetMocks: false, diff --git a/test/e2e/tests/issues/3117.spec.js b/test/e2e/tests/issues/3117.spec.js index e17dc9381c..ce9b523e85 100644 --- a/test/e2e/tests/issues/3117.spec.js +++ b/test/e2e/tests/issues/3117.spec.js @@ -1,4 +1,4 @@ -const { test, expect } = require("@playwright/test"); +const { test, expect } = require("../../test-fixtures"); const { syncLV } = require("../../utils"); test("LiveComponent with static FC root is not reset", async ({ page }) => {