Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Switch back to using the official enzyme distro
Browse files Browse the repository at this point in the history
Now that it supports React.Context
  • Loading branch information
Dom Harrington committed Aug 29, 2018
1 parent 862a3df commit 22a6f52
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 39 deletions.
3 changes: 1 addition & 2 deletions lib/enzyme.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable import/no-extraneous-dependencies */
// TODO switch this back once https://github.com/airbnb/enzyme/issues/1509 is merged
const Adapter = require('enzyme-react-adapter-future');
const Adapter = require('enzyme-adapter-react-16');
const enzyme = require('enzyme');

enzyme.configure({ adapter: new Adapter() });
61 changes: 31 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"babel-loader": "^8.0.0-beta.4",
"css-loader": "^1.0.0",
"enzyme": "^3.3.0",
"enzyme-react-adapter-future": "^1.1.3",
"enzyme-adapter-react-16": "^1.3.0",
"eslint": "^3.19.0",
"eslint-config-airbnb": "^15.0.2",
"eslint-plugin-import": "^2.7.0",
Expand Down
6 changes: 0 additions & 6 deletions packages/api-explorer/lib/enzyme.js

This file was deleted.

0 comments on commit 22a6f52

Please sign in to comment.