mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
8 lines
253 B
TypeScript
8 lines
253 B
TypeScript
import Enzyme from 'enzyme';
|
|
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
|
|
import enableHooks from 'jest-react-hooks-shallow';
|
|
|
|
Enzyme.configure({ adapter: new Adapter() });
|
|
|
|
// pass an instance of jest to `enableHooks()`
|
|
enableHooks(jest);
|