Skip to content

Commit 838ffec

Browse files
author
NellowTCS
committed
A few things that needed to be fixed
1 parent a5e4d58 commit 838ffec

11 files changed

Lines changed: 1036 additions & 51 deletions

File tree

Build/jest.config.cjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
testEnvironment: "node",
2+
testEnvironment: "jsdom",
33
roots: ["<rootDir>/tests"],
44
testMatch: ["**/*.test.ts", "**/*.spec.ts"],
55
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json"],
@@ -10,11 +10,12 @@ module.exports = {
1010
"^@core/(.*)$": "<rootDir>/src/core/$1",
1111
"^@platform/(.*)$": "<rootDir>/src/platform/$1",
1212
},
13+
setupFiles: ["<rootDir>/tests/__mocks__/browser.ts"],
1314
collectCoverageFrom: [
1415
"src/core/engine/**/*.ts",
1516
"src/platform/audio/**/*.ts",
1617
],
1718
coverageDirectory: "coverage",
1819
coverageReporters: ["text", "json", "html"],
1920
verbose: true,
20-
};
21+
};

0 commit comments

Comments
 (0)