Skip to content

Commit 31af8bb

Browse files
author
dschlabach
committed
fix: fix failing tests
1 parent 4a53d9f commit 31af8bb

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
lines changed

.vscode/settings.json

-3
This file was deleted.

src/fund/components/FundButton.test.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import '@testing-library/jest-dom';
22
import { fireEvent, render, screen } from '@testing-library/react';
33
import { type Mock, afterEach, describe, expect, it, vi } from 'vitest';
4-
import { openPopup } from '../../internal/utils/openPopup';
4+
import { openPopup } from '../../packages/core/utils/openPopup';
55
import { useGetFundingUrl } from '../hooks/useGetFundingUrl';
66
import { getFundingPopupSize } from '../utils/getFundingPopupSize';
77
import { FundButton } from './FundButton';
@@ -14,7 +14,7 @@ vi.mock('../utils/getFundingPopupSize', () => ({
1414
getFundingPopupSize: vi.fn(),
1515
}));
1616

17-
vi.mock('../../internal/utils/openPopup', () => ({
17+
vi.mock('../../packages/core/utils/openPopup', () => ({
1818
openPopup: vi.fn(),
1919
}));
2020

src/fund/utils/getFundingPopupSize.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { type Mock, afterEach, describe, expect, it, vi } from 'vitest';
2-
import { getWindowDimensions } from '../../internal/utils/getWindowDimensions';
2+
import { getWindowDimensions } from '../../packages/core/utils/getWindowDimensions';
33
import { ONRAMP_POPUP_HEIGHT, ONRAMP_POPUP_WIDTH } from '../constants';
44
import { getFundingPopupSize } from './getFundingPopupSize';
55

6-
vi.mock('../../internal/utils/getWindowDimensions', () => ({
6+
vi.mock('../../packages/core/utils/getWindowDimensions', () => ({
77
getWindowDimensions: vi.fn(),
88
}));
99

src/identity/components/EthBalance.test.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { render, screen } from '@testing-library/react';
22
import '@testing-library/jest-dom';
33
import { type Mock, describe, expect, it, vi } from 'vitest';
4-
import { getRoundedAmount } from '../../internal/utils/getRoundedAmount';
4+
import { getRoundedAmount } from '../../packages/core/utils/getRoundedAmount';
55
import { useGetETHBalance } from '../../wallet/hooks/useGetETHBalance';
66
import { EthBalance } from './EthBalance';
77
import { useIdentityContext } from './IdentityProvider';
@@ -18,7 +18,7 @@ vi.mock('../../wallet/hooks/useGetETHBalance', () => ({
1818
useGetETHBalance: vi.fn(),
1919
}));
2020

21-
vi.mock('../../internal/utils/getRoundedAmount', () => ({
21+
vi.mock('../../packages/core/utils/getRoundedAmount', () => ({
2222
getRoundedAmount: vi.fn(),
2323
}));
2424

src/wallet/components/WalletDropdownFundLink.test.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { fireEvent, render, screen } from '@testing-library/react';
33
import { type Mock, afterEach, describe, expect, it, vi } from 'vitest';
44
import { useGetFundingUrl } from '../../fund/hooks/useGetFundingUrl';
55
import { getFundingPopupSize } from '../../fund/utils/getFundingPopupSize';
6-
import { openPopup } from '../../internal/utils/openPopup';
76
import { WalletDropdownFundLink } from './WalletDropdownFundLink';
7+
import { openPopup } from '../../packages/core/utils/openPopup';
88

99
vi.mock('../../fund/hooks/useGetFundingUrl', () => ({
1010
useGetFundingUrl: vi.fn(),
@@ -14,7 +14,7 @@ vi.mock('../../fund/utils/getFundingPopupSize', () => ({
1414
getFundingPopupSize: vi.fn(),
1515
}));
1616

17-
vi.mock('../../internal/utils/openPopup', () => ({
17+
vi.mock('../../packages/core/utils/openPopup', () => ({
1818
openPopup: vi.fn(),
1919
}));
2020

0 commit comments

Comments
 (0)