From 3a3cfdd468355b24c10c83be36b389143fe990f7 Mon Sep 17 00:00:00 2001 From: "fred.tran" Date: Tue, 26 Nov 2024 17:53:24 +0800 Subject: [PATCH] chore: fix /bridge utils test --- .../bridge/src/__tests__/{utils.test.ts => utils.test.tsx} | 3 +++ 1 file changed, 3 insertions(+) rename packages/bridge/src/__tests__/{utils.test.ts => utils.test.tsx} (92%) diff --git a/packages/bridge/src/__tests__/utils.test.ts b/packages/bridge/src/__tests__/utils.test.tsx similarity index 92% rename from packages/bridge/src/__tests__/utils.test.ts rename to packages/bridge/src/__tests__/utils.test.tsx index aa7b7e2..374a21c 100644 --- a/packages/bridge/src/__tests__/utils.test.ts +++ b/packages/bridge/src/__tests__/utils.test.tsx @@ -9,6 +9,9 @@ afterEach(() => { vi.mock('@portkey/contracts', () => ({ getContractBasic: vi.fn(), })); +vi.mock('@portkey/did-ui-react', () => ({ + PortkeyProvider: ({ children }: { children: React.ReactNode }) =>
{children}
, +})); describe('getCaContractBase()', () => { it('should throw error about chain is not running', async () => {