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

JS: Fix some JSDoc types, and misc details in tests #1783

Merged
merged 1 commit into from
Oct 22, 2023

Conversation

yuvipanda
Copy link
Collaborator

@yuvipanda yuvipanda commented Oct 20, 2023

  • Optional args get [] around the param name, not the type!
  • Remove extra increased timeout for some jest tests, as they are not needed
  • Pass actual URL objects to some of the methods, rather than strings. These accidentally worked but shouldn't be relied upon.
  • Import just the function used during tests from node modules, rather than the entire module.
  • Fix type of fetch to indicate that's actually just an iterator, not a generator.

Ref #774

@yuvipanda yuvipanda added maintenance Under the hood improvements and fixes code:js-binderhub-client js changes to binderhub-client labels Oct 20, 2023
- Optional args get [] around the param name, not the type!
- Remove extra increased timeout for some jest tests, as they
  are not needed
- Pass actual URL objects to some of the methods, rather than
  strings. These accidentally worked but shouldn't be relied upon.
- Import just the function used during tests from node modules,
  rather than the entire module.
- Fix type of `fetch` to indicate that's actually just an *iterator*,
  not a *generator*.

Ref jupyterhub#774
@yuvipanda yuvipanda requested a review from minrk October 20, 2023 07:21
@consideRatio consideRatio changed the title JS: Fix some JSDoc types JS: Fix some JSDoc types, and misc details Oct 22, 2023
@consideRatio consideRatio changed the title JS: Fix some JSDoc types, and misc details JS: Fix some JSDoc types, and misc details in tests Oct 22, 2023
@consideRatio consideRatio merged commit b2e2ed6 into jupyterhub:main Oct 22, 2023
13 of 15 checks passed
@consideRatio
Copy link
Member

Amazing work on this @yuvipanda !!!!

consideRatio pushed a commit to jupyterhub/helm-chart that referenced this pull request Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code:js-binderhub-client js changes to binderhub-client maintenance Under the hood improvements and fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants