diff --git a/apps/autonolas-registry/jest.setup.js b/apps/autonolas-registry/jest.setup.js index 7c8b9411..6cc131a8 100644 --- a/apps/autonolas-registry/jest.setup.js +++ b/apps/autonolas-registry/jest.setup.js @@ -45,3 +45,16 @@ jest.mock('./common-util/Login/config', () => ({ EVM_SUPPORTED_CHAINS: [{ id: 1 }], SVM_SUPPORTED_CHAINS: [{ id: 1 }], })); + +const { mainnet, optimism, gnosis, polygon, base, arbitrum, celo, mode } = require('viem/chains'); + +jest.mock('wagmi/chains', () => ({ + mainnet, + optimism, + gnosis, + polygon, + base, + arbitrum, + celo, + mode, +})); diff --git a/apps/autonolas-registry/tests/components/ListServices/index.test.tsx b/apps/autonolas-registry/tests/components/ListServices/index.test.tsx index 3c7b171f..960da91e 100644 --- a/apps/autonolas-registry/tests/components/ListServices/index.test.tsx +++ b/apps/autonolas-registry/tests/components/ListServices/index.test.tsx @@ -227,7 +227,7 @@ describe('listServices/index.jsx - EVM', () => { await waitFor(async () => { expect(within(allServicesTable).getByText('5001')).toBeInTheDocument(); - expect(within(allServicesTable).getByText(/0x8626...9C1199/)).toBeInTheDocument(); + expect(within(allServicesTable).getByText(/0x8626f...C1199 ↗/)).toBeInTheDocument(); expect(within(allServicesTable).getByText(/Terminated Bonded/)).toBeInTheDocument(); expect(within(allServicesTable).getByText(/View/)).toBeInTheDocument(); }); @@ -299,7 +299,7 @@ describe('listServices/index.jsx - SVM', () => { expect(getByText('Action')).toBeInTheDocument(); // rows - expect(getByText(/DrGvsA...D3Wm5x/)).toBeInTheDocument(); + expect(getByText(/DrGvsAx...3Wm5x/)).toBeInTheDocument(); expect(getByText(/Terminated Bonded/)).toBeInTheDocument(); expect(getByText(/View/)).toBeInTheDocument(); }); diff --git a/apps/launch/jest.config.js b/apps/launch/jest.config.js index 8b3c3f20..76cc3e24 100644 --- a/apps/launch/jest.config.js +++ b/apps/launch/jest.config.js @@ -6,7 +6,7 @@ module.exports = { displayName: 'launch', preset: '../../jest.preset.js', testEnvironment: 'jsdom', - testTimeout: 10000, + testTimeout: 15000, moduleNameMapper: { ...pathsToModuleNameMapper(compilerOptions.paths, { prefix: resolve(__dirname, '../..') }), '^util/(.*)$': '/util/$1',