chore(client): update react-testing-library
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
589564e56c
commit
01ddc7c9a2
@@ -1,11 +1,13 @@
|
||||
/* global expect */
|
||||
import React from 'react';
|
||||
import { render } from 'react-testing-library';
|
||||
import { render, cleanup } from '@testing-library/react';
|
||||
import 'jest-dom/extend-expect';
|
||||
|
||||
import Loader from './Loader';
|
||||
|
||||
describe('<Loader />', () => {
|
||||
afterEach(cleanup);
|
||||
|
||||
it('renders to the DOM', () => {
|
||||
const { container } = render(<Loader />);
|
||||
expect(container).toBeTruthy();
|
||||
|
Reference in New Issue
Block a user