mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 14:42:28 +01:00
22 lines
925 B
JavaScript
22 lines
925 B
JavaScript
module.exports = {
|
|
roots: ["<rootDir>/src/", "<rootDir>/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",
|
|
moduleNameMapper: {
|
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
|
|
"<rootDir>/test/__mocks__/fileMock.js",
|
|
"\\.(css|less)$": "<rootDir>/test/__mocks__/styleMock.js",
|
|
"\\!!raw-loader!.*$": "<rootDir>/test/__mocks__/rawLoader.js",
|
|
"@player": "<rootDir>/src/Player",
|
|
"@enums": "<rootDir>/src/Enums",
|
|
"@nsdefs": "<rootDir>/src/ScriptEditor/NetscriptDefinitions",
|
|
"^monaco-editor$": "<rootDir>/test/__mocks__/monacoMock.js",
|
|
"^monaco-vim$": "<rootDir>/test/__mocks__/monacoMock.js",
|
|
},
|
|
};
|