From 8421022841185940c534a3ad2c8054237cdcfbc7 Mon Sep 17 00:00:00 2001
From: David Baker <dbkr@users.noreply.github.com>
Date: Tue, 27 Aug 2024 15:46:50 +0100
Subject: [PATCH] Rename all the slow reporter stuff to cjs (#12933)

To hopefully fix tests on develop
---
 jest.config.ts                             | 2 +-
 test/{slowReporter.js => slowReporter.cjs} | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename test/{slowReporter.js => slowReporter.cjs} (89%)

diff --git a/jest.config.ts b/jest.config.ts
index 7293e5b3be..3203fb2025 100644
--- a/jest.config.ts
+++ b/jest.config.ts
@@ -53,7 +53,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("<rootDir>/test/slowReporter.js");
+        reporters.push("<rootDir>/test/slowReporter.cjs");
     }
     config.reporters = reporters;
 }
diff --git a/test/slowReporter.js b/test/slowReporter.cjs
similarity index 89%
rename from test/slowReporter.js
rename to test/slowReporter.cjs
index f63f218c36..455b9ba025 100644
--- a/test/slowReporter.js
+++ b/test/slowReporter.cjs
@@ -14,4 +14,4 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
-module.exports = require("matrix-js-sdk/spec/slowReporter");
+module.exports = require("matrix-js-sdk/spec/slowReporter.cjs");
-- 
GitLab