From 968bc51a35fa3dd6d2105da039b45b3704e6d1ee Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Tue, 20 Aug 2024 21:48:27 +0100 Subject: [PATCH] Rename slowReporter to reflect that it is CommonJS (#4356) Fix tests failing as a result of https://github.com/matrix-org/matrix-js-sdk/pull/4355. This wasn't detected in CI because the slowReporter is only enabled when building against develop. (cherry picked from commit d413f5042e998d0c2444331a8f6d1bc0e4f22225) --- jest.config.ts | 2 +- spec/{slowReporter.js => slowReporter.cjs} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename spec/{slowReporter.js => slowReporter.cjs} (100%) diff --git a/jest.config.ts b/jest.config.ts index d541b67a0..1e6833a58 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -39,7 +39,7 @@ if (env["GITHUB_ACTIONS"] !== undefined) { // if we're running against the develop branch, also enable the slow test reporter if (env["GITHUB_REF"] == "refs/heads/develop") { - reporters.push("/spec/slowReporter.js"); + reporters.push("/spec/slowReporter.cjs"); } config.reporters = reporters; } diff --git a/spec/slowReporter.js b/spec/slowReporter.cjs similarity index 100% rename from spec/slowReporter.js rename to spec/slowReporter.cjs