-
Notifications
You must be signed in to change notification settings - Fork 1.8k
test(NODE-7160): migrate node-mongodb-native/test/unit/assorted
tests
#4663
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
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.
From the test refactor ticket:
Update the client import in each updated file to use src instead of legacy
Can we also update each file in this directory to import from src
, instead of from ../../mongodb
?
Additionally, going forward, can we put any JS->TS conversions into their own commit? That helps with review, because you can then view the diff on subsequent commits to see the substantive changes. The diff in this PR is unhelpful
node-mongodb-native/test/unit/assorted
testsnode-mongodb-native/test/unit/assorted
tests
@PavelSafronov Just a note that I updated the conventional commit tag in the PR title to "test". We reserve "fix" for bug fixes of source code. |
53ba448
to
1dc1050
Compare
@baileympearson Thanks for the comments here and offline! As discussed, we are removing one of the lint rules that blocks importing of Aside from that, the |
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.
Just a few small comments. Looks good! And thanks for removing our lint rule that we no longer need.
remove extra comment Co-authored-by: Bailey Pearson <bailey.pearson@gmail.com>
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.
Failing tests are also failing on other branches. LGTM
Description
Summary of Changes
Migrating
node-mongodb-native/test/unit/assorted
driver callback API style tests to promises.Notes for Reviewers
Repro/test steps:
test/mongodb.ts
(this disables MongoDB legacy)npm run check:unit
test/unit/assorted/sessions_client.test.ts
npm run check:unit
test/unit/assorted/sessions_client.test.ts
test/mongodb.ts
npm run check:unit
What is the motivation for this change?
https://jira.mongodb.org/browse/NODE-4979
Double check the following
npm run check:lint
)type(NODE-xxxx)[!]: description
feat(NODE-1234)!: rewriting everything in coffeescript