phantasmal-world/jest.config.js

11 lines
365 B
JavaScript

module.exports = {
preset: "ts-jest",
testEnvironment: "node",
moduleDirectories: ["node_modules"],
setupFiles: ["./test/src/setup.js"],
moduleNameMapper: {
"\\.(css|gif|jpg|png|svg|ttf)$": "<rootDir>/src/__mocks__/static_files.js",
"monaco-editor": "<rootDir>/node_modules/monaco-editor/dev/vs/editor/editor.main.js",
},
};