Skip to content
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

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

bartriordan
Copy link
Contributor

@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.

@bartriordan bartriordan requested a review from BJK May 4, 2018 20:14
@@ -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',
Copy link
Contributor Author

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.

Copy link
Collaborator

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",
Copy link
Contributor Author

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$/)
Copy link
Contributor Author

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.

@maneeshanand
Copy link
Contributor

👍 LGTM

Copy link
Contributor

@maneeshanand maneeshanand left a 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.

Copy link
Collaborator

@BJK BJK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GTM

@maneeshanand
Copy link
Contributor

@BJK you're blocking our React 16 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants