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

Add fetchTypesPackageVersionInfo() tests #464

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jablko
Copy link
Contributor

@jablko jablko commented May 22, 2022

I added a couple of tests for fetchTypesPackageVersionInfo(), to exercise #447.

  • I based this PR on Use cached npm info #451, to mock npm registry responses the same way as in that PR (using pacote).
  • I removed the canPublish argument and instead return both the published and incipient versions. The caller can decide which they want.
  • Added a comment with some notes.

@sandersn
Copy link
Member

I'm slammed right now, but I'll take a look at your PRs when I have my Definitely Typed rotation week.

In the meantime, the top of my wishlist is adding eslint to CI runs so that we can start migrating off of tslint, especially our custom rules. But that requires a lot of testing to make sure performance isn't worse and results are the same.

@jablko
Copy link
Contributor Author

jablko commented May 30, 2022

@sandersn Understood. Thank you!

@jablko jablko force-pushed the patch-52 branch 2 times, most recently from 5413ffe to 8da2aa1 Compare June 5, 2022 15:07
@jablko jablko force-pushed the patch-52 branch 2 times, most recently from 2e37952 to 6859143 Compare June 16, 2022 15:08
@jablko jablko force-pushed the patch-52 branch 6 times, most recently from e3595e6 to d1eb3a8 Compare June 29, 2022 16:51
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.

2 participants