Skip to content

Commit

Permalink
fix(bridge-ui-v2): build errors (#14706)
Browse files Browse the repository at this point in the history
  • Loading branch information
KorbinianK committed Sep 28, 2023
1 parent 537207a commit 25edfd3
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 70 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ import { RelayerAPIService } from './RelayerAPIService';

vi.mock('axios');

vi.mock('@wagmi/core');

vi.mock('$libs/chain', () => {
return {
chains: ['mockChain1', 'mockChain2'],
getConfiguredChainIds: vi.fn(() => [1, 2, 3]),
};
});

function setupMocks() {
vi.mock('$customToken', () => {
return {
Expand Down
9 changes: 9 additions & 0 deletions packages/bridge-ui-v2/src/libs/util/mergeTransactions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ import type { TokenType } from '$libs/token';
import { mergeAndCaptureOutdatedTransactions } from '$libs/util/mergeTransactions';

function setupMocks() {
vi.mock('@wagmi/core');

vi.mock('$libs/chain', () => {
return {
chains: ['mockChain1', 'mockChain2'],
getConfiguredChainIds: vi.fn(() => [1, 2, 3]),
};
});

vi.mock('$customToken', () => {
return {
customToken: [
Expand Down

0 comments on commit 25edfd3

Please sign in to comment.