start
This commit is contained in:
9
src/setupTests.js
Normal file
9
src/setupTests.js
Normal file
@@ -0,0 +1,9 @@
|
||||
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
||||
// allows you to do things like:
|
||||
// expect(element).toHaveTextContent(/react/i)
|
||||
// learn more: https://github.com/testing-library/jest-dom
|
||||
import '@testing-library/jest-dom';
|
||||
import Enzyme from 'enzyme';
|
||||
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
|
||||
|
||||
Enzyme.configure({adapter: new Adapter()});
|
||||
Reference in New Issue
Block a user