Skip to content

Commit

Permalink
fix most integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
groninge01 committed Sep 30, 2024
1 parent 8fb19ce commit a4996d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/lib/test/vitest/setup-integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ afterAll(async () => {
Mocks getDefaultRpcUrl to return the test rpcUrl ('http://127.0.0.1:port/poolId')
Keeps the rest of the module unmocked
*/
vi.mock('../../lib/modules/web3/transports', async importOriginal => {
vi.mock('../../modules/web3/transports', async importOriginal => {
const originalModule = await importOriginal<typeof transportsModule>()
return {
...originalModule,
Expand All @@ -38,7 +38,7 @@ vi.mock('../../lib/modules/web3/transports', async importOriginal => {
Mocks getViemClient to use the test chain definitions,
which use test rpcUrls ('http://127.0.0.1:port/poolId')
*/
vi.mock('../../lib/shared/services/viem/viem.client', () => {
vi.mock('../../shared/services/viem/viem.client', () => {
return {
getViemClient: (chain: GqlChain) => {
return createPublicClient({
Expand Down
3 changes: 1 addition & 2 deletions packages/lib/vitest.config.integration.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import { InlineConfig } from 'vitest'
import { InlineConfig } from 'vitest/node'
import vitestUnitConfig from './vitest.config'

function setupFilesWithoutMswSetup() {
Expand Down

0 comments on commit a4996d4

Please sign in to comment.