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",