DARKNET: Darkweb Expansion Project & Bitnode (#2139)

This is BN15. It is a really big change; see the PR for all the details.
This commit is contained in:
Michael Ficocelli
2026-02-03 06:40:36 -05:00
committed by GitHub
parent a674633f6c
commit 6073964768
225 changed files with 15010 additions and 526 deletions
+20
View File
@@ -20,7 +20,27 @@ describe("v3", () => {
const mockedDownload = jest.spyOn(FileUtils, "downloadContentAsFile");
const originalConsoleError = console.error;
const originalConsoleWarning = console.warn;
const consoleError = jest.spyOn(console, "error").mockImplementation((...data: unknown[]) => {
if (Array.isArray(data) && data.length > 0 && (data[0] === "There was no Darknet savedata" || data[0] === "")) {
return;
}
originalConsoleError(...data);
});
const consoleWarning = jest.spyOn(console, "warn").mockImplementation((...data: unknown[]) => {
if (
Array.isArray(data) &&
data.length > 0 &&
(data[0] === "Encountered the following issue while loading Darknet savedata:" || data[0] === "Savedata:")
) {
return;
}
originalConsoleWarning(...data);
});
await loadGame(await db.load());
consoleError.mockRestore();
consoleWarning.mockRestore();
// Check if auto-migration works
expect(