Skip to content

Commit ca39ad5

Browse files
committed
chore: fix import
1 parent 974e61e commit ca39ad5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

packages/core/src/createConfig.test-d.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
import { accounts, testConnector } from '@wagmi/test'
1+
import { accounts } from '@wagmi/test'
22
import { http, createClient, webSocket } from 'viem'
33
import { mainnet, sepolia } from 'viem/chains'
44
import { expectTypeOf, test } from 'vitest'
55

6+
import { mock } from './connectors/mock.js'
67
import { type CreateConfigParameters, createConfig } from './createConfig.js'
78

89
test('high-level config', () => {
910
// Create config without needing to import viem modules.
1011
const config = createConfig({
1112
cacheTime: 100,
1213
chains: [mainnet, sepolia],
13-
connectors: [testConnector({ accounts })],
14+
connectors: [mock({ accounts })],
1415
batch: { multicall: true },
1516
pollingInterval: { [mainnet.id]: 100 },
1617
transports: {
@@ -27,7 +28,7 @@ test('low-level config', () => {
2728
// Create a "multi chain" config using viem modules.
2829
const config = createConfig({
2930
chains: [mainnet, sepolia],
30-
connectors: [testConnector({ accounts })],
31+
connectors: [mock({ accounts })],
3132
client({ chain }) {
3233
return createClient({ chain, transport: http() })
3334
},
@@ -40,15 +41,15 @@ test('`chains` must have at least one chain`', () => {
4041
createConfig({
4142
// @ts-expect-error
4243
chains: [],
43-
connectors: [testConnector({ accounts })],
44+
connectors: [mock({ accounts })],
4445
transports: {
4546
[mainnet.id]: http(),
4647
},
4748
})
4849
createConfig({
4950
// @ts-expect-error
5051
chains: [],
51-
connectors: [testConnector({ accounts })],
52+
connectors: [mock({ accounts })],
5253
client: ({ chain }) =>
5354
createClient({
5455
chain,

0 commit comments

Comments
 (0)