module.exports = { roots: ["/src/", "/test/"], moduleFileExtensions: ["ts", "tsx", "js", "jsx"], transform: { "^.+\\.(js|jsx|ts|tsx)$": "babel-jest", }, transformIgnorePatterns: ["node_modules/(?!react-markdown)/"], testPathIgnorePatterns: [".cypress", "node_modules", "dist"], testEnvironment: "./FixJSDOMEnvironment.ts", setupFiles: ["./jest.polyfills.js"], moduleNameMapper: { "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "/test/__mocks__/fileMock.js", "\\.(css|less)$": "/test/__mocks__/NullMock.js", ".*?raw$": "/test/__mocks__/fileMock.js", "@player": "/src/Player", "@enums": "/src/Enums", "@nsdefs": "/src/ScriptEditor/NetscriptDefinitions", "^monaco-editor$": "/test/__mocks__/NullMock.js", "^monaco-vim$": "/test/__mocks__/NullMock.js", "/utils/Protections$": "/test/__mocks__/NullMock.js", }, };