phantasmal-world/jest.config.js

12 lines
458 B
JavaScript
Raw Normal View History

2019-07-27 23:13:00 +08:00
module.exports = {
preset: "ts-jest",
2019-07-27 23:13:00 +08:00
moduleDirectories: ["node_modules"],
2019-12-25 07:53:17 +08:00
setupFiles: ["./test/src/setup.js", "jest-canvas-mock"],
roots: ["./src", "./test"],
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",
},
};