mirror of
https://github.com/DaanVandenBosch/phantasmal-world.git
synced 2025-04-04 22:58:29 +08:00
22 lines
737 B
JavaScript
22 lines
737 B
JavaScript
module.exports = {
|
|
preset: "ts-jest",
|
|
moduleDirectories: ["node_modules"],
|
|
setupFiles: ["./test/src/setup.js", "jest-canvas-mock"],
|
|
roots: ["./src", "./test"],
|
|
modulePathIgnorePatterns: [
|
|
"/node_modules/",
|
|
// Ignore prs-rs browser package and only use testing package.
|
|
"/src/core/data_formats/compression/prs/pkg",
|
|
],
|
|
moduleNameMapper: {
|
|
"\\.(css|gif|jpg|png|svg|ttf)$": "<rootDir>/src/__mocks__/static_files.js",
|
|
"^monaco-editor$": "<rootDir>/node_modules/monaco-editor/esm/vs/editor/editor.main.js",
|
|
"^worker-loader!": "<rootDir>/src/__mocks__/webworkers.js",
|
|
},
|
|
globals: {
|
|
"ts-jest": {
|
|
isolatedModules: true,
|
|
},
|
|
},
|
|
};
|