-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blr/chores/upgrade/react/v16.3.2 #58
base: dev
Are you sure you want to change the base?
Conversation
@@ -8,6 +8,7 @@ module.exports = function(config) { | |||
webpack: webpackConfig, | |||
frameworks: ['es5-shim', 'mocha', 'chai', 'sinon-chai', 'chai-jquery', 'jquery-2.1.0'], | |||
files: [ | |||
'./node_modules/es6-shim/es6-shim.js', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why PhantomJS is busted in this repo without the ES6 shim, but this approach is recommended by others for fixing this exact issue with Karma.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think phantom actually just doesn't support certain parts of es6...
package.json
Outdated
"eslint": "^4.8.0", | ||
"eslint-plugin-babel": "^4.0.1", | ||
"eslint-plugin-react": "^7.3.0", | ||
"flux": "^3.1.3", | ||
"invariant": "^2.1.0", | ||
"jquery": "^3.0.0", | ||
"karma": "^0.12.31", | ||
"karma": "^2.0.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did some other upgrades to keep things moving
@@ -2,5 +2,5 @@ import FUHelpers from '../src/testUtils/ChaiAddons' | |||
|
|||
chai.use(FUHelpers) | |||
|
|||
const libContext = require.context('./lib/', true, /Spec.js$/) | |||
const libContext = require.context('./lib/', true, /Spec\.js$/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BS: we had never escaped the period in the regex for some reason.
👍 LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's amazing that I can still review this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GTM
@BJK you're blocking our React 16 release. |
@BJK @maneeshanand @andela-tkomolafe @whabib Please review. This PR preps for upgrading web-apps to React v16 by bumping some dependencies and adding a shim that fixes an issue with the tests in PhantomJS.