2022-05-09 15:33:44 +02:00
|
|
|
import '@testing-library/jest-dom/extend-expect'
|
2022-05-23 13:29:37 +02:00
|
|
|
import './__mocks__/matchMedia'
|
2022-11-04 14:52:40 +01:00
|
|
|
|
|
|
|
import marketMetadata from './__fixtures__/marketMetadata'
|
|
|
|
import userPreferences from './__fixtures__/userPreferences'
|
|
|
|
import web3 from './__fixtures__/web3'
|
|
|
|
import { asset } from './__fixtures__/assetWithAccessDetails'
|
2022-08-12 15:11:33 +02:00
|
|
|
|
|
|
|
jest.mock('../../src/@context/MarketMetadata', () => ({
|
2022-11-04 14:52:40 +01:00
|
|
|
useMarketMetadata: () => marketMetadata
|
|
|
|
}))
|
|
|
|
|
|
|
|
jest.mock('../../src/@context/UserPreferences', () => ({
|
|
|
|
useUserPreferences: () => userPreferences
|
|
|
|
}))
|
|
|
|
|
|
|
|
jest.mock('../../src/@context/Web3', () => ({
|
|
|
|
useWeb3: () => web3
|
|
|
|
}))
|
|
|
|
|
|
|
|
jest.mock('../../../@context/Asset', () => ({
|
|
|
|
useAsset: () => ({ asset })
|
2022-08-12 15:11:33 +02:00
|
|
|
}))
|