test(NODE-7160): migrate node-mongodb-native/test/unit/assorted tests#4663
test(NODE-7160): migrate node-mongodb-native/test/unit/assorted tests#4663baileympearson merged 9 commits intomongodb:mainfrom
node-mongodb-native/test/unit/assorted tests#4663Conversation
baileympearson
left a comment
There was a problem hiding this comment.
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 |
baileympearson
left a comment
There was a problem hiding this comment.
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 <[email protected]>
baileympearson
left a comment
There was a problem hiding this comment.
Failing tests are also failing on other branches. LGTM
Description
Summary of Changes
Migrating
node-mongodb-native/test/unit/assorteddriver callback API style tests to promises.Notes for Reviewers
Repro/test steps:
test/mongodb.ts(this disables MongoDB legacy)npm run check:unittest/unit/assorted/sessions_client.test.tsnpm run check:unittest/unit/assorted/sessions_client.test.tstest/mongodb.tsnpm run check:unitWhat is the motivation for this change?
https://jira.mongodb.org/browse/NODE-4979
Double check the following
npm run check:lint)type(NODE-xxxx)[!]: descriptionfeat(NODE-1234)!: rewriting everything in coffeescript