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
Inline and improve the stoppable
package
#5498
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
glasser
changed the title
Glasser/inline stoppable
wip: inline and improve the Jul 16, 2021
stoppable
package
glasser
force-pushed
the
glasser/inline-stoppable
branch
from
July 19, 2021 20:54
ad25463
to
f3d2975
Compare
glasser
added
size/medium
Estimated to take LESS THAN A WEEK
and removed
size/small
Estimated to take LESS THAN A DAY
labels
Jul 19, 2021
glasser
changed the title
wip: inline and improve the
Inline and improve the Jul 19, 2021
stoppable
packagestoppable
package
glasser
force-pushed
the
glasser/inline-stoppable
branch
from
July 23, 2021 05:48
255c046
to
e101dec
Compare
This is from https://github.com/hunterloftis/stoppable and is MIT licensed.
Instead of adding a callback-y function to the server.
Fixes "Jest did not exit one second after the test run has completed." issue.
glasser
force-pushed
the
glasser/inline-stoppable
branch
from
July 23, 2021 05:49
e101dec
to
26638b0
Compare
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is part of #5074.
This PR takes the small MIT-licensed package
stoppable
and its test suite and moves them into theapollo-server
package. (Though once #5074 is done, it should end up inapollo-server-core
instead.) This package is helpful but it hasn't been updated in years and PRs like hunterloftis/stoppable#33 have not been merged.Advantages of this version over the upstream:
unref
(Fixesapollo-server
's stop() hangs when running in jest jsdom browser-emulation mode due to lack of timer.unref #4933)async
rather than taking a callback