-
Notifications
You must be signed in to change notification settings - Fork 1.8k
test(NODE-3468): Add tests for a strongly-typed Db #2937
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
Conversation
This allows users who re-use a single db object to define which collections are available on that Db, as well as the types those collections contain. NODE-3468
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for providing additional tests, just need to update the type to also accept undefined
as noted below, otherwise these typescript tests are going to fail, since findOne can also return undefined.
Co-authored-by: Daria Pardue <81593090+dariakp@users.noreply.github.com>
Co-authored-by: Daria Pardue <81593090+dariakp@users.noreply.github.com>
Co-authored-by: Daria Pardue <81593090+dariakp@users.noreply.github.com>
Done! @dariakp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again! LGTM
NODE-3468
Description
What changed?
The added tests ensure that users who re-use a single db object can define which collections are available on that Db, as well as the types those collections contain.