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 () => {