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

[jest-config] Use read-pkg to read package.json. #2992

Merged
merged 3 commits into from
Feb 27, 2017
Merged

[jest-config] Use read-pkg to read package.json. #2992

merged 3 commits into from
Feb 27, 2017

Conversation

wtgtybhertgeghgtwtg
Copy link
Contributor

Summary
Uses read-pkg to read package.json instead of require'ing package.json directly. read-pkg is already in the dependency tree, (not specifically in jest-config's, but the only packages that require jest-config are jest-runtime, jest-cli, and ts-jest, which also has read-pkg in its dependency tree) so it reduces code duplication.

Test plan
Writing tests for loadFromPackage

@cpojer cpojer merged commit 08b8f73 into jestjs:master Feb 27, 2017
@wtgtybhertgeghgtwtg wtgtybhertgeghgtwtg deleted the use-read-pkg branch February 27, 2017 02:56
skovhus pushed a commit to skovhus/jest that referenced this pull request Apr 29, 2017
* [jest-config] Use `read-pkg` to read `package.json`.

* Lint.

* Remember my ABC's.
tushardhole pushed a commit to tushardhole/jest that referenced this pull request Aug 21, 2017
* [jest-config] Use `read-pkg` to read `package.json`.

* Lint.

* Remember my ABC's.
@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.

3 participants