diff --git a/packages/create-burner/test/manager/burnerManager.test.ts b/packages/create-burner/test/manager/burnerManager.test.ts index 4b1ad1f2..b8c03713 100644 --- a/packages/create-burner/test/manager/burnerManager.test.ts +++ b/packages/create-burner/test/manager/burnerManager.test.ts @@ -71,12 +71,18 @@ describe("BurnerManager", () => { }, }); + // Mock the provider.getChainId() method + burnerManager.provider.getChainId = vi.fn().mockResolvedValue("0x1"); + // Initialize BurnerManager with the mocked storage await burnerManager.init(); - expect(Storage.get).toHaveBeenCalledWith("burners_KATANA"); + expect(Storage.get).toHaveBeenCalledWith("burners_1"); }); it("generateKeysAndAddress", async () => { + // Mock the provider.getChainId() method + burnerManager.provider.getChainId = vi.fn().mockResolvedValue("0x1"); + await burnerManager.init(); const wallet1_index0 = { diff --git a/packages/state/package.json b/packages/state/package.json index 7364487d..39644cf1 100644 --- a/packages/state/package.json +++ b/packages/state/package.json @@ -8,7 +8,7 @@ "type": "module", "scripts": { "build": "tsup --dts-resolve", - "test": "vitest" + "test": "vitest run" }, "exports": { ".": {