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

Migrate to React 16 everywhere #423

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
"conventional-changelog-cli": "1.3.3",
"css-loader": "0.28.7",
"doctoc": "1.3.0",
"enzyme": "3.0.0",
"enzyme-adapter-react-15": "1.0.0",
"enzyme": "3.1.0",
"enzyme-adapter-react-16": "1.0.1",
"escape-html": "1.0.3",
"eslint": "4.7.2",
"eslint-config-algolia": "12.0.0",
Expand All @@ -82,7 +82,7 @@
"happo-target-firefox": "5.0.0-rc.8",
"happypack": "4.0.0",
"hasha": "3.0.0",
"jest-cli": "21.2.0",
"jest-cli": "21.2.1",
"jsdoc-parse": "^1.2.7",
"json": "9.0.6",
"jstransformer-markdown-it": "2.0.0",
Expand All @@ -108,12 +108,12 @@
"prop-types": "15.6.0",
"pug": "2.0.0-rc.4",
"qs": "6.5.1",
"react": "15.6.2",
"react": "16.0.0",
"react-addons-test-utils": "15.6.2",
"react-autosuggest": "9.3.2",
"react-dom": "15.6.2",
"react-dom": "16.0.0",
"react-hot-loader": "3.0.0-beta.7",
"react-tap-event-plugin": "2.0.1",
"react-tap-event-plugin": "3.0.2",
"recursive-readdir": "2.2.1",
"replace-in-file": "2.6.4",
"rheostat": "2.1.1",
Expand All @@ -133,7 +133,8 @@
},
"jest": {
"notify": false,
"testPathIgnorePatterns": ["/packages/react-instantsearch/examples"]
"testPathIgnorePatterns": ["/packages/react-instantsearch/examples"],
"setupFiles": ["./shim.js"]
},
"license": "MIT",
"author": {
Expand Down
11 changes: 7 additions & 4 deletions packages/react-instantsearch/examples/autocomplete/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
"private": true,
"devDependencies": {
"identity-obj-proxy": "3.0.0",
"jest-environment-jsdom-11.0.0": "^20.0.9",
"react-scripts": "1.0.14",
"react-test-renderer": "15.6.2"
"react-test-renderer": "16.0.0"
},
"dependencies": {
"antd": "^2.12.1",
"lodash": "^4.17.4",
"prop-types": "^15.5.10",
"react": "^15.6.1",
"react": "16.0.0",
"react-autosuggest": "^9.3.1",
"react-dom": "^15.6.1",
"react-dom": "16.0.0",
"react-instantsearch": "4.1.2",
"react-instantsearch-theme-algolia": "4.1.2"
},
Expand All @@ -23,7 +24,9 @@
"notify": false,
"moduleNameMapper": {
"\\.(css)$": "identity-obj-proxy"
}
},
"setupFiles": ["../../../../shim.js"],
"testEnvironment": "jest-environment-jsdom-11.0.0"
},
"main": "index.js",
"license": "MIT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import renderer from 'react-test-renderer';

jest.mock('antd/lib/mention');

describe('autocomplete recipe', () => {
describe('autocomplete recipe3', () => {
it('MultiIndex renders without crashing', () => {
const component = renderer.create(<MultiIndex />);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`autocomplete recipe Mentions renders without crashing 1`] = `
exports[`autocomplete recipe3 Mentions renders without crashing 1`] = `
<div
className="ais-InstantSearch__root"
/>
`;

exports[`autocomplete recipe MultiIndex renders without crashing 1`] = `
exports[`autocomplete recipe3 MultiIndex renders without crashing 1`] = `
<div
className="ais-InstantSearch__root"
>
Expand Down
Loading