Mocking 2 or more modules in jest doesnt mocking values

i am mocking 2 module one is react-library and other one is simple file but when i try to test it gives error and doesnt run but when i do it one by one by commenting first jest.mock and running second one or commenting second one and running first then it works perfectly

jest.mock('@web3modal/ethers/react')
jest.mock('../../helper/Api', () => ({
   fetchBtcPrice: jest.fn().mockResolvedValue(10),
   getTotalBtc: jest.fn().mockResolvedValue([5, true]),
 }))

then how to deal with 2 or multiple module mocking in same test file??

example –

jest.mock('@web3modal/ethers/react')

jest.mock('../../helper/Api', () => ({
  fetchBtcPrice: jest.fn().mockResolvedValue('10'),
  getTotalCostakedBtc: jest.fn().mockResolvedValue([5, true]), // Assuming you want to simulate 'true' for show notification
}))
describe('Dashboard without connecting wallet', () => {
it('renders TVL value correctly', async () => {
    await act(async () =>
      render(
        <ErrorBoundary>
          <RecoilRoot>
            <App>
              <Dashboard />
            </App>
          </RecoilRoot>
        </ErrorBoundary>,
      ),
    )
    await act(async () => {
      const tvlElement = await waitFor(() => screen.getByTestId('loaded-TVL'), { timeout: 3000 })
      // screen.debug()
      const tvlText = tvlElement.textContent
      const expectedTotalValue = 5 * 10
      expect(tvlText).toEqual(`TVL$${expectedTotalValue}`)
    })
  })
})

it wont pass the test case
but if i jest.mock('@web3modal/ethers/react') comment this line
then it passes the code and give me expected as 50. else it gives me 0 only.
similarly
if i do

jest.mock('@web3modal/ethers/react')

jest.mock('../../helper/Api', () => ({
  fetchBtcPrice: jest.fn().mockResolvedValue('10'),
  getTotalCostakedBtc: jest.fn().mockResolvedValue([5, true]), // Assuming you want to simulate 'true' for show notification
}))
describe('Dashboard web3 after connecting wallet', () => {
  let mockOpen, mockSetThemeMode, mockAddress, mockIsConnected, mockWalletProvider, mockDisconnect

  beforeEach(() => {
    mockOpen = jest.fn()
    mockSetThemeMode = jest.fn()
    mockAddress = '0x9e0569'
    mockIsConnected = true

    mockWalletProvider = {
      request: jest.fn(),
      send: jest.fn(),
      on: jest.fn(),
      removeListener: jest.fn(),
      disconnect: jest.fn(),
      isMetaMask: true, // assuming you are using MetaMask
      _events: {}, // required by some ethers.js methods
    }
    mockDisconnect = jest.fn()

    // // If you need to mock specific responses from the provider
    // mockWalletProvider.request.mockResolvedValue('0x123') // mock response for request method
    // mockWalletProvider.send.mockResolvedValue('0x456') // mock response for send method

    useWeb3Modal.mockReturnValue({ open: mockOpen })
    useWeb3ModalTheme.mockReturnValue({ setThemeMode: mockSetThemeMode })
    useWeb3ModalAccount.mockReturnValue({ address: mockAddress, isConnected: mockIsConnected })
    useWeb3ModalProvider.mockReturnValue({ walletProvider: mockWalletProvider })
    useDisconnect.mockReturnValue({ disconnect: mockDisconnect })
  })
it('renders clicking arrow button navigating to costake page', async () => {
    const { getByTestId } = render(
      <ErrorBoundary>
        <RecoilRoot>
          <App>
            <Dashboard />
          </App>
        </RecoilRoot>
      </ErrorBoundary>,
    )
    fireEvent.click(getByTestId('arrow-img'))
    expect(window.location.pathname).toBe('/costake')
  })
})

then it also failed but if i comment

// jest.mock('../../helper/Api', () => ({
//   fetchBtcPrice: jest.fn().mockResolvedValue('10'),
//   getTotalCostakedBtc: jest.fn().mockResolvedValue([5, true]), // Assuming you want to simulate 'true' for show notification
// }))

then it passes the test case.
so its like,the jest is overlapping the mock modules.
how to solve this?

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật