CODEBASE: Suppress false-positive console errors caused by RamCalculation.test.ts (#2002)

This commit is contained in:
catloversg
2025-03-08 06:15:54 +07:00
committed by GitHub
parent 8fe0ea1615
commit 7f443427ea

View File

@@ -26,6 +26,7 @@ function grabCost<API>(ramEntry: RamCostTree<API>[keyof API]) {
describe("Netscript RAM Calculation/Generation Tests", function () {
jest.spyOn(console, "warn").mockImplementation(() => {});
jest.spyOn(console, "error").mockImplementation(() => {});
Player.sourceFiles.set(4, 3);
// For simulating costs of singularity functions.
const baseCost = RamCostConstants.Base;