mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
* asset teaser test, story, useUserPreferences Jest mock * fixtures & mocks * more tests * cleanup * more tests * more tests * more tests * more tests * typing fix * package updates * reorg * more tests * more tests * more tests * more tests * reorg, more tests * reorg fixes * more tests * rebase fix * subgraph query typing fix * restore some storybook stories * more tests * more tests * package lock fix * graphql override
24 lines
666 B
JavaScript
24 lines
666 B
JavaScript
import '@testing-library/jest-dom/extend-expect'
|
|
import './__mocks__/matchMedia'
|
|
|
|
import marketMetadata from './__fixtures__/marketMetadata'
|
|
import userPreferences from './__fixtures__/userPreferences'
|
|
import web3 from './__fixtures__/web3'
|
|
import { asset } from './__fixtures__/assetWithAccessDetails'
|
|
|
|
jest.mock('../../src/@context/MarketMetadata', () => ({
|
|
useMarketMetadata: () => marketMetadata
|
|
}))
|
|
|
|
jest.mock('../../src/@context/UserPreferences', () => ({
|
|
useUserPreferences: () => userPreferences
|
|
}))
|
|
|
|
jest.mock('../../src/@context/Web3', () => ({
|
|
useWeb3: () => web3
|
|
}))
|
|
|
|
jest.mock('../../../@context/Asset', () => ({
|
|
useAsset: () => ({ asset })
|
|
}))
|