Skip to content

Commit f9d7293

Browse files
committed
fix pw test
1 parent c8e8869 commit f9d7293

File tree

3 files changed

+246
-288
lines changed

3 files changed

+246
-288
lines changed

playwright-ct.config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,6 @@ const config: PlaywrightTestConfig = defineConfig({
9393
{ find: '@metamask/post-message-stream', replacement: './playwright/mocks/modules/@metamask/post-message-stream.js' },
9494
{ find: '@metamask/providers', replacement: './playwright/mocks/modules/@metamask/providers.js' },
9595

96-
// '@metamask/sdk imports the browser module as UMD, but @wagmi/connectors expects it to be ESM
97-
// so we do a little remapping here
98-
{ find: '@metamask/sdk', replacement: './node_modules/@metamask/sdk/dist/browser/es/metamask-sdk.js' },
99-
10096
// Mock for growthbook to test feature flags
10197
{ find: 'lib/growthbook/useFeatureValue', replacement: './playwright/mocks/lib/growthbook/useFeatureValue.js' },
10298

playwright/TestApp.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ import { GrowthBookProvider } from '@growthbook/growthbook-react';
22
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
33
import React from 'react';
44
import { http } from 'viem';
5-
import { WagmiProvider, createConfig } from 'wagmi';
5+
import { WagmiProvider, createConfig, mock } from 'wagmi';
66
import { mainnet } from 'wagmi/chains';
7-
import { mock } from 'wagmi/connectors';
87

98
import type { Props as PageProps } from 'nextjs/getServerSideProps/handlers';
109

0 commit comments

Comments
 (0)