Fix RTL warnings
This commit is contained in:
parent
81763c1e70
commit
8b57f6fdb1
@ -1,14 +1,17 @@
|
|||||||
import { render } from '@testing-library/react';
|
import { render } from '@testing-library/react';
|
||||||
|
import { act } from 'react-dom/test-utils';
|
||||||
import { MockedProvider } from '@apollo/react-testing';
|
import { MockedProvider } from '@apollo/react-testing';
|
||||||
import MarketListTable from './market-list-table';
|
import MarketListTable from './market-list-table';
|
||||||
|
|
||||||
describe('MarketListTable', () => {
|
describe('MarketListTable', () => {
|
||||||
it('should render successfully', () => {
|
it('should render successfully', async () => {
|
||||||
const { baseElement } = render(
|
await act(async () => {
|
||||||
<MockedProvider>
|
const { baseElement } = render(
|
||||||
<MarketListTable />
|
<MockedProvider>
|
||||||
</MockedProvider>
|
<MarketListTable />
|
||||||
);
|
</MockedProvider>
|
||||||
expect(baseElement).toBeTruthy();
|
);
|
||||||
|
expect(baseElement).toBeTruthy();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user