Skip to content

Commit

Permalink
gh-422: Update react + babel and get tests to pass
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrowd committed Apr 11, 2020
1 parent 9cef73e commit 56eaefc
Show file tree
Hide file tree
Showing 8 changed files with 3,350 additions and 787 deletions.
11 changes: 8 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"presets": [ "react", "es2015" ],
"plugins": [ "transform-class-properties", "transform-object-rest-spread" ]
}
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-proposal-class-properties"
]
}
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,19 @@
},
"homepage": "http://leandrowd.github.io/react-responsive-carousel/",
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.0",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/preset-env": "^7.9.5",
"@babel/preset-react": "^7.9.4",
"@kadira/react-storybook-addon-info": "^3.4.0",
"@kadira/storybook": "^2.35.3",
"auto-changelog": "^1.10.2",
"babel-cli": "^6.24.1",
"babel-core": "^6.24.1",
"babel-jest": "^19.0.0",
"babel-loader": "^7.0.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babelify": "^7.3.0",
"browserify": "^14.3.0",
"connect-modrewrite": "^0.9.0",
"css-loader": "^0.28.0",
"enzyme": "^2.8.2",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"gh-pages": "^0.11.0",
"gulp": "^3.8.9",
"gulp-clean-css": "^2.0.12",
Expand All @@ -80,13 +77,13 @@
"gulp-uglify": "^2.0.0",
"gulp-util": "^3.0.0",
"husky": "^3.0.9",
"jest-cli": "^19.0.2",
"jest-cli": "^25.3.0",
"prettier": "^1.18.2",
"pretty-quick": "^2.0.0",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react": "^16.9.0",
"react-dom": "^16.9.0",
"react-player": "^1.15.3",
"react-test-renderer": "^15.5.4",
"react-test-renderer": "^16.9.0",
"sass-loader": "^4.0.2",
"style-loader": "^0.13.1",
"vinyl-source-stream": "^1.1.0",
Expand All @@ -101,7 +98,10 @@
"unmockedModulePathPatterns": [
"node_modules"
],
"rootDir": "src"
"rootDir": "src",
"setupFilesAfterEnv": [
"../setupTests.js"
]
},
"husky": {
"hooks": {
Expand Down
3 changes: 3 additions & 0 deletions setupTests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
Enzyme.configure({ adapter: new Adapter() });
Loading

0 comments on commit 56eaefc

Please sign in to comment.