Skip to content

Commit 5451d5f

Browse files
committed
suppress stdout leak on tests
1 parent e5c5d22 commit 5451d5f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/mock-chain/src/mockChain.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,10 @@ describe("Contract execution and chain mocking", () => {
447447
});
448448

449449
it("Should fail with wrong keys", () => {
450+
const consoleMock = vi.spyOn(console, "log").mockImplementation(() => {
451+
return;
452+
});
453+
450454
const params = { height: 38478, timestamp: new Date().getTime() };
451455
const chain = new MockChain(params);
452456
const bob = chain.newParty().withBalance({ nanoergs: 1000000000n });

0 commit comments

Comments
 (0)