Jest browser-node test (#28789)

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/28652/merge
Michael Telatynski 2024-12-23 18:06:52 +00:00 committed by GitHub
parent 7e1927d388
commit ec95435724
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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: ["<rootDir>/test/**/*-test.[tj]s?(x)"],
globalSetup: "<rootDir>/test/globalSetup.ts",