Skip to content

Commit

Permalink
CODEBASE: Suppress false-positive console errors caused by RamCalcula…
Browse files Browse the repository at this point in the history
…tion.test.ts (#2002)
  • Loading branch information
catloversg authored Mar 7, 2025
1 parent 8fe0ea1 commit 7f44342
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/jest/Netscript/RamCalculation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7f44342

Please sign in to comment.