Skip to content

Commit

Permalink
chore: upgrade enzyme and adapter (#1799)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamandrewluca committed Apr 7, 2020
1 parent eb43553 commit 1595071
Show file tree
Hide file tree
Showing 3 changed files with 273 additions and 183 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -286,8 +286,8 @@
"css-loader": "^2.1.0",
"customize-cra": "^0.2.8",
"ejs": "^2.5.9",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"eslint": "^5.0.0",
"eslint-config-react-app": "^3.0.6",
"eslint-plugin-flowtype": "^3.2.0",
Expand Down
4 changes: 0 additions & 4 deletions src/setupTests.js
Expand Up @@ -5,10 +5,6 @@ import Adapter from 'enzyme-adapter-react-16';

Enzyme.configure({ adapter: new Adapter() });

// TODO remove when enzyme releases https://github.com/airbnb/enzyme/pull/1179
ReactWrapper.prototype.hostNodes = function () {
return this.filterWhere(n => typeof n.type() === 'string');
};
global.requestAnimationFrame = function (cb) { cb(0); };
global.window.cancelAnimationFrame = function () { };
global.createSpyObj = (baseName, methodNames) => {
Expand Down

0 comments on commit 1595071

Please sign in to comment.