-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[WIP] test(NODE-7179): migrate tests to import directly from src
folder
#4736
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
base: main
Are you sure you want to change the base?
Conversation
8158091
to
da062d6
Compare
|
||
const nextStub = sinon.stub(changeStream.cursor, 'next').callsFake(async function () { | ||
callback(new MongoNetworkError('error triggered from test')); | ||
onClose(new MongoNetworkError('error triggered from test')); |
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.
This is not in the scope if this ticket, but I decided to fix this syntax error, just let me know if I should revert it, no strong feelings.
|
||
// TODO(NODE-6599): mongodb-legacy adds additional client metadata, breaking these prose tests | ||
let client: RawMongoClient; | ||
let client: MongoClient; |
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.
I guess this is nice side-effect, as we can run these tests w/o wrapper.
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.
Suggest removing any TODOs related to NODE-6599 as well.
src
foldersrc
folder
Description
Summary of Changes
Notes for Reviewers
What is the motivation for this change?
Release Highlight
Release notes highlight
Double check the following
npm run check:lint
)type(NODE-xxxx)[!]: description
feat(NODE-1234)!: rewriting everything in coffeescript