Skip to content

Commit

Permalink
Update tests to run against react 16
Browse files Browse the repository at this point in the history
  • Loading branch information
pcardune committed Oct 10, 2017
1 parent 2f603e0 commit 6493e28
Show file tree
Hide file tree
Showing 3 changed files with 453 additions and 369 deletions.
38 changes: 20 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,44 +40,46 @@
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-eslint": "^8.0.0",
"babel-jest": "^21.0.2",
"babel-eslint": "^8.0.1",
"babel-jest": "^21.2.0",
"babel-loader": "^7.1.2",
"babel-plugin-transform-flow-strip-types": "^6.18.0",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-1": "^6.24.1",
"documentation": "^5.3.2",
"enzyme": "^2.9.1",
"eslint": "^4.7.2",
"eslint-plugin-flowtype": "^2.36.0",
"enzyme": "^3.1.0",
"enzyme-adapter-react-16": "^1.0.1",
"eslint": "^4.8.0",
"eslint-plugin-flowtype": "^2.39.1",
"eslint-plugin-react": "^7.4.0",
"firebase": "^4.3.0",
"flow-bin": "^0.55.0",
"flow-typed": "^2.1.5",
"firebase": "^4.5.0",
"flow-bin": "^0.56.0",
"flow-typed": "^2.2.0",
"html-webpack-plugin": "^2.30.1",
"jasmine-reporters": "^2.2.0",
"jest": "^21.1.0",
"jasmine-reporters": "^2.2.1",
"jest": "^21.2.1",
"nodemon": "^1.12.1",
"prop-types": "^15.5.10",
"prop-types": "^15.6.0",
"react": "^15.4.1",
"react-addons-test-utils": "^15.6.0",
"react-dom": "^15.6.1",
"react-addons-test-utils": "^15.6.2",
"react-dom": "^16.0.0",
"react-redux": "^5.0.3",
"react-test-renderer": "^16.0.0",
"redux": "^3.7.2",
"redux-logger": "^3.0.6",
"redux-thunk": "^2.1.0",
"redux-thunk": "^2.2.0",
"webpack": "^3.6.0",
"webpack-dev-server": "^2.8.2"
"webpack-dev-server": "^2.9.1"
},
"dependencies": {
"immutable": "^3.8.1",
"immutable": "^3.8.2",
"lodash.memoize": "^4.1.2",
"redux-immutable": "^4.0.0",
"reselect": "^3.0.1"
},
"optionalDependencies": {
"react": "^15.6.1",
"react": "^16.0.0",
"react-redux": "^5.0.6"
},
"peerDependencies": {
Expand Down
5 changes: 4 additions & 1 deletion src/__test__/hoc.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//@flow
import React, {Component} from 'react';
import {mount} from 'enzyme';
import Enzyme, {mount} from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import thunkMiddleware from 'redux-thunk';
import {createStore, applyMiddleware} from 'redux';
import {Provider} from 'react-redux';
Expand All @@ -10,6 +11,8 @@ import {subscribePaths, subscribeProps} from '../hoc';
import {SUBSCRIBE_TO_VALUES} from '../constants';
import Subscription from '../Subscription';

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

describe('the hoc.js module', () => {
let store, dispatchedActions, database;
beforeEach(() => {
Expand Down
Loading

0 comments on commit 6493e28

Please sign in to comment.