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

Move getType from jest-matcher-utils to separate package #3559

Merged
merged 1 commit into from
May 30, 2017

Conversation

wyze
Copy link
Contributor

@wyze wyze commented May 12, 2017

Summary

This resolves #3528. Move the getType utility function from jest-matcher-utils to standalone package. This way jest-config and other packages don't need to depend on jest-matcher-utils for just one function.

Test plan

All tests still pass.


Note: When I ran yarn test locally, It failed to typecheck inside node_modules/jest-validate as it was looking for getType function that I just removed. This comes from prettier depending on jest-validate. I assumed it was safe to just ignore that typecheck since it is inside node_modules.

@thymikee
Copy link
Collaborator

Looks good! I think you can safely add node_modules/jest-validate to .flowconfig's ignore

@codecov-io
Copy link

codecov-io commented May 12, 2017

Codecov Report

Merging #3559 into master will increase coverage by 0.02%.
The diff coverage is 96.77%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3559      +/-   ##
==========================================
+ Coverage   62.63%   62.65%   +0.02%     
==========================================
  Files         182      183       +1     
  Lines        6704     6708       +4     
  Branches        6        6              
==========================================
+ Hits         4199     4203       +4     
  Misses       2502     2502              
  Partials        3        3
Impacted Files Coverage Δ
packages/jest-diff/src/index.js 69.04% <ø> (ø) ⬆️
...ckages/jest-config/src/reporterValidationErrors.js 20% <ø> (ø) ⬆️
packages/jest-matcher-utils/src/index.js 100% <100%> (+1.38%) ⬆️
packages/jest-validate/src/errors.js 100% <100%> (ø) ⬆️
packages/jest-matchers/src/toThrowMatchers.js 80% <100%> (+0.37%) ⬆️
packages/jest-matchers/src/matchers.js 98.36% <100%> (ø) ⬆️
packages/jest-get-type/src/index.js 96.29% <96.29%> (ø)

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 216dd82...54b08ae. Read the comment docs.

@cpojer
Copy link
Member

cpojer commented May 30, 2017

Do you mind rebasing?

@wyze
Copy link
Contributor Author

wyze commented May 30, 2017

Done.

@cpojer cpojer merged commit 214313a into jestjs:master May 30, 2017
@cpojer
Copy link
Member

cpojer commented May 30, 2017

Thank you!

@wyze wyze deleted the get-type-package branch May 30, 2017 14:05
tushardhole pushed a commit to tushardhole/jest that referenced this pull request Aug 21, 2017
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jest-config shouldn't import getType from matcher-utils
5 participants