mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-07 19:14:37 +01:00
add raw-loader to jest config
This commit is contained in:
@ -9,5 +9,6 @@ module.exports = {
|
||||
"\\.(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",
|
||||
},
|
||||
};
|
||||
|
@ -13,7 +13,7 @@ import {
|
||||
isFileData,
|
||||
} from "./MessageDefinitions";
|
||||
|
||||
import libSource from "../ScriptEditor/NetscriptDefinitions.d.ts";
|
||||
import libSource from "!!raw-loader!../ScriptEditor/NetscriptDefinitions.d.ts";
|
||||
|
||||
function error(errorMsg: string, { id }: RFAMessage): RFAMessage {
|
||||
return new RFAMessage({ error: errorMsg, id: id });
|
||||
|
0
test/__mocks__/rawLoader.js
Normal file
0
test/__mocks__/rawLoader.js
Normal file
Reference in New Issue
Block a user