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

chore(all): upgrade graceful-fs #1717

Merged
merged 1 commit into from
Apr 20, 2022
Merged

Conversation

eventualbuddha
Copy link
Collaborator

@eventualbuddha eventualbuddha commented Apr 20, 2022

Overview

Fixes #1716

Ensures that the version of graceful-fs in use includes this fix: isaacs/node-graceful-fs#220. This was breaking jest-resolve for reasons I don't fully understand, making it unable to load tests for res-to-ts.

I wasn't able to figure out how to make pnpm update graceful-fs to the version I wanted as a transitive dependency. I tried pnpm update graceful-fs@4.2.10 and similar, but none worked. Instead, I manually updated the lockfile to point to graceful-fs: 4.2.10 and removed the graceful-fs entries, then ran pnpm install to make pnpm fix the broken lockfile.

Demo Video or Screenshot

n/a

Testing Plan

Tried using with node 16.14.2, which worked.

Checklist

  • I have added logging where appropriate to any new user actions, system updates such as file reads or storage writes, or errors introduced.
  • I have added JSDoc comments to any newly introduced exports
  • I have added a screenshot and/or video to this PR to demo the change
  • I have added the "user_facing_change" label to this PR to automate an announcement in #machine-product-updates

@eventualbuddha eventualbuddha requested a review from a team as a code owner April 20, 2022 19:54
@eventualbuddha eventualbuddha requested review from carolinemodic and removed request for a team April 20, 2022 19:54
@taravancil
Copy link
Contributor

Huh. Nice one tracking this down!

@eventualbuddha eventualbuddha merged commit c9baab1 into main Apr 20, 2022
@eventualbuddha eventualbuddha deleted the chore/all/upgrade-graceful-fs branch April 20, 2022 21:08
Ensures that the version of `graceful-fs` in use includes this fix: isaacs/node-graceful-fs#220. This was breaking `jest-resolve` for reasons I don't fully understand, making it unable to load tests for `res-to-ts`.

I wasn't able to figure out how to make `pnpm` update `graceful-fs` to the version I wanted as a transitive dependency. I tried `pnpm update graceful-fs@4.2.10` and similar, but none worked. Instead, I manually updated the lockfile to point to `graceful-fs: 4.2.10` and removed the `graceful-fs` entries, then ran `pnpm install` to make `pnpm` fix the broken lockfile.

Fixes #1716
eventualbuddha added a commit that referenced this pull request Apr 21, 2022
Turns out 4.2.4 was sneaking back in after #1717 because of the override in `pnpmfile.js`. This updates the override to use 4.2.10.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix missing ts-jest in res-to-ts when running unit tests
2 participants