From ec954357245cc2782f89c2b22e4bd14773e0d0e9 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 23 Dec 2024 18:06:52 +0000 Subject: [PATCH] Jest browser-node test (#28789) Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- jest.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jest.config.ts b/jest.config.ts index 326f2040d9..1c4821cc3f 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -14,6 +14,8 @@ const config: Config = { testEnvironment: "jsdom", testEnvironmentOptions: { url: "http://localhost/", + // This is needed to be able to load dual CJS/ESM WASM packages e.g. rust crypto & matrix-wywiwyg + customExportConditions: ["browser", "node"], }, testMatch: ["/test/**/*-test.[tj]s?(x)"], globalSetup: "/test/globalSetup.ts",