Commit 4faaa60a authored by Jordan Frankfurt's avatar Jordan Frankfurt Committed by GitHub

chore: update web3-react (#7158)

* chore: update web3-react

yarn deduplicate

* catch .warn warnings
parent 3a94a992
...@@ -4,6 +4,8 @@ import Bag from './Bag' ...@@ -4,6 +4,8 @@ import Bag from './Bag'
describe('Bag.tsx', () => { describe('Bag.tsx', () => {
it('matches base snapshot', () => { it('matches base snapshot', () => {
// todo: remove once zustand usage has been update such that `shallow` is no longer used
jest.spyOn(console, 'warn').mockImplementation(jest.fn)
const { asFragment } = render(<Bag />) const { asFragment } = render(<Bag />)
expect(asFragment()).toMatchSnapshot() expect(asFragment()).toMatchSnapshot()
}) })
......
...@@ -6,6 +6,8 @@ import { CollectionAsset } from './CollectionAsset' ...@@ -6,6 +6,8 @@ import { CollectionAsset } from './CollectionAsset'
describe('NftCard', () => { describe('NftCard', () => {
it('renders correctly', () => { it('renders correctly', () => {
// todo: remove once zustand usage has been update such that `shallow` is no longer used
jest.spyOn(console, 'warn').mockImplementation(jest.fn)
const { asFragment } = render( const { asFragment } = render(
<CollectionAsset <CollectionAsset
asset={TEST_NFT_ASSET} asset={TEST_NFT_ASSET}
......
...@@ -5,6 +5,8 @@ import { ViewMyNftsAsset } from './ViewMyNftsAsset' ...@@ -5,6 +5,8 @@ import { ViewMyNftsAsset } from './ViewMyNftsAsset'
describe('NftCard', () => { describe('NftCard', () => {
it('renders correctly', () => { it('renders correctly', () => {
// todo: remove once zustand usage has been update such that `shallow` is no longer used
jest.spyOn(console, 'warn').mockImplementation(jest.fn)
const { asFragment } = render( const { asFragment } = render(
<ViewMyNftsAsset <ViewMyNftsAsset
asset={TEST_NFT_WALLET_ASSET} asset={TEST_NFT_WALLET_ASSET}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment