diff --git a/packages/adapters/ethers/src/tests/mocks/AuthConnector.ts b/packages/adapters/ethers/src/tests/mocks/AuthConnector.ts index 07f99eafaa..bc7d53af51 100644 --- a/packages/adapters/ethers/src/tests/mocks/AuthConnector.ts +++ b/packages/adapters/ethers/src/tests/mocks/AuthConnector.ts @@ -6,6 +6,7 @@ export const mockAuthConnector = { onRpcSuccess: vi.fn(), onNotConnected: vi.fn(), onIsConnected: vi.fn(), + onConnect: vi.fn(), onSetPreferredAccount: vi.fn(), connect: vi.fn().mockResolvedValue({ address: '0x1234567890123456789012345678901234567890', diff --git a/packages/adapters/ethers5/src/tests/mocks/AuthConnector.ts b/packages/adapters/ethers5/src/tests/mocks/AuthConnector.ts index 07f99eafaa..bc7d53af51 100644 --- a/packages/adapters/ethers5/src/tests/mocks/AuthConnector.ts +++ b/packages/adapters/ethers5/src/tests/mocks/AuthConnector.ts @@ -6,6 +6,7 @@ export const mockAuthConnector = { onRpcSuccess: vi.fn(), onNotConnected: vi.fn(), onIsConnected: vi.fn(), + onConnect: vi.fn(), onSetPreferredAccount: vi.fn(), connect: vi.fn().mockResolvedValue({ address: '0x1234567890123456789012345678901234567890', diff --git a/packages/adapters/solana/src/tests/mocks/AuthConnector.ts b/packages/adapters/solana/src/tests/mocks/AuthConnector.ts index 9af5874639..36e2c2a61d 100644 --- a/packages/adapters/solana/src/tests/mocks/AuthConnector.ts +++ b/packages/adapters/solana/src/tests/mocks/AuthConnector.ts @@ -4,6 +4,7 @@ export const mockAuthConnector = { onRpcRequest: vi.fn(), onRpcError: vi.fn(), onRpcSuccess: vi.fn(), + onConnect: vi.fn(), onNotConnected: vi.fn(), onIsConnected: vi.fn(), onSetPreferredAccount: vi.fn(), diff --git a/packages/adapters/wagmi/src/tests/client.test.ts b/packages/adapters/wagmi/src/tests/client.test.ts index ffd65f30dd..7d111b6980 100644 --- a/packages/adapters/wagmi/src/tests/client.test.ts +++ b/packages/adapters/wagmi/src/tests/client.test.ts @@ -413,7 +413,7 @@ describe('Wagmi Client', () => { expect(mockAppKit.addConnector).toHaveBeenCalledWith({ id: ConstantsUtil.AUTH_CONNECTOR_ID, type: 'AUTH', - name: 'Auth', + name: 'w3mAuth', provider: 'mockProvider', chain: 'eip155' }) @@ -438,7 +438,8 @@ describe('Wagmi Client', () => { onIsConnected: vi.fn(), onGetSmartAccountEnabledNetworks: vi.fn(), onSetPreferredAccount: vi.fn(), - rejectRpcRequests: vi.fn() + rejectRpcRequests: vi.fn(), + onConnect: vi.fn() } mockConnector = { getProvider: vi.fn().mockResolvedValue(mockProvider)