2021-08-27 01:24:29 +02:00
|
|
|
module.exports = {
|
2021-09-05 01:09:30 +02:00
|
|
|
moduleFileExtensions: ["ts", "tsx", "js", "jsx"],
|
|
|
|
transform: {
|
|
|
|
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest",
|
|
|
|
},
|
2022-04-07 01:30:08 +02:00
|
|
|
testPathIgnorePatterns: [".cypress", "node_modules", "dist"],
|
2021-09-05 01:09:30 +02:00
|
|
|
testEnvironment: "jsdom",
|
2022-01-19 16:51:36 +01:00
|
|
|
moduleNameMapper: {
|
2022-04-07 01:30:08 +02:00
|
|
|
"\\.(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",
|
2022-09-14 19:05:55 +02:00
|
|
|
"\\!!raw-loader!.*$": "<rootDir>/test/__mocks__/rawLoader.js",
|
2022-10-19 18:45:40 +02:00
|
|
|
"@player": "<rootDir>/src/Player",
|
2022-12-30 02:28:53 +01:00
|
|
|
"@nsdefs": "<rootDir>/src/ScriptEditor/NetscriptDefinitions",
|
2023-02-24 03:43:29 +01:00
|
|
|
"^monaco-editor$": "<rootDir>/test/__mocks__/monacoMock.js",
|
|
|
|
"^monaco-vim$": "<rootDir>/test/__mocks__/monacoMock.js",
|
2022-04-07 01:30:08 +02:00
|
|
|
},
|
2021-08-27 01:24:29 +02:00
|
|
|
};
|