-
Notifications
You must be signed in to change notification settings - Fork 324
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
Upgrade dev dependencies #1533
Upgrade dev dependencies #1533
Conversation
li-kai
commented
Feb 9, 2019
- Upgrades babel & jest
- Improve jest performance
- Improve babel and js performance
Deploy preview for nusmods ready! Built with commit 853980b |
Code coverage somehow increased 16%. Either you broke the code coverage path config or you fixed it. Can you check which one it is? :P |
CI seem to be slightly faster, which is nice, and bundle size is smaller by 4kb gzipped, which is a small win |
@ZhangYiJiang It was broken because it wasn't covering all the files without a test file beside. However, test coverage still went up, because we ignore test-utils instead of test_utils now 💯 |
1364a3b
to
1317461
Compare
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.
Mostly minor stuff. To be honest I'm not entirely sure if replacing the static config object with this is a good idea, but it's relatively minor either way.
], | ||
snapshotSerializers: ['<rootDir>/node_modules/enzyme-to-json/serializer'], | ||
collectCoverageFrom: ['**/*.{js,jsx}'], | ||
coveragePathIgnorePatterns: ['/node_modules/', '<rootDir>/src/js/(?:test-utils|e2e)'], |
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 the ?:
is unnecessary. It makes it a non-capturing group, which captures intent better, but it makes it a bit harder to read. I can go either way 🤷♂️
* Upgrade babel config * Update jest config * Improve test performance * Align babel config with create-react-app * Fix various config flows