Files
react/tests/setup.js
witt 80956b0cc8 chore: release v2.1.0-canary.3 (#450)
* docs: add link to GH discussions

* chore: upgrade deps

* chore: update code style for prettier

* chore: release v2.1.0-canary.3

* chore(deps): upgrade babel

* chore: replace enzyme adapter with community repo to fit react.17

* test: updatee snapshots for auto typesetting

* test(config): ignore unexported parts of the tools
2021-02-14 15:27:37 +08:00

9 lines
262 B
JavaScript

const enzyme = require('enzyme')
/**
* The official repository does not currently support React 17
* https://github.com/enzymejs/enzyme/issues/2429
*/
const Adapter = require('@wojtekmaj/enzyme-adapter-react-17')
enzyme.configure({ adapter: new Adapter() })