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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade to jest 23 #507

Merged
merged 1 commit into from Oct 21, 2018
Merged

chore: upgrade to jest 23 #507

merged 1 commit into from Oct 21, 2018

Conversation

SimenB
Copy link
Contributor

@SimenB SimenB commented Oct 21, 2018

Since you don't support node 4, it's safe to upgrade 馃檪

Using Jest 23 means that you can use e.g. https://github.com/jest-community/jest-watch-typeahead if you want

@@ -49,6 +49,8 @@
"stringify-object": "^3.2.2"
},
"devDependencies": {
"babel-core": "^6.26.3",
"babel-jest": "^23.6.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To work with yarn plug n play, it's important to not rely on hoising

@@ -49,6 +49,8 @@
"stringify-object": "^3.2.2"
},
"devDependencies": {
"babel-core": "^6.26.3",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

peer dep of babel-jest (due to us supporting both babel 6 and 7)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you think it would be possible for us to remove babel from the project? I don't mind not using import but being more strict on what features are allowed. Last time it confused me a lot since tests are relying on it but source code doesn't

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, probably. Especially if you start using node 8, as you have object spread and async await out of the box 馃檪

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, exactly. Here is the issue to track #508 ;)

@codecov
Copy link

codecov bot commented Oct 21, 2018

Codecov Report

Merging #507 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #507   +/-   ##
=======================================
  Coverage   97.94%   97.94%           
=======================================
  Files          12       12           
  Lines         243      243           
  Branches       29       29           
=======================================
  Hits          238      238           
  Misses          5        5

Continue to review full report at Codecov.

Legend - Click here to learn more
螖 = absolute <relative> (impact), 酶 = not affected, ? = missing data
Powered by Codecov. Last update f05ada6...29f0870. Read the comment docs.

@okonet okonet merged commit e6a6ec6 into lint-staged:master Oct 21, 2018
@okonet
Copy link
Collaborator

okonet commented Oct 21, 2018

Thanks a lot. Just today I was thinking about upgrading to use inline snapshots so it comes in handy :)

@SimenB SimenB deleted the jest-23 branch October 21, 2018 20:12
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.

None yet

2 participants