-
Notifications
You must be signed in to change notification settings - Fork 1.8k
test: more Unified runner operations #2730
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
87d48fc
to
fb049bf
Compare
Adds a number of operations, makes use of chai expect instead of boolean for assertions to track stack traces, adds session and bucket entity types. Passes utilClient through to operation functions which are" inlined into the operations map to get type checking to work. Modifies url helper function to make multipleMongoses detection work.
fb049bf
to
7366597
Compare
Working on the few failures left, but shouldn't be drastic so I think this is ready for a look, thanks! |
Move runner into its own file
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.
One minor request but LGTM 👍
throw new Error(`Assertions need ${error} to be a MongoError`); | ||
// if statement asserts type for TS, expect will always fail | ||
expect(error).to.be.instanceOf(MongoError); | ||
return; | ||
} | ||
|
||
if (expected.errorCode) { |
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 think it'd be better to do if (expected.errorCode != null)
here and in the other checks to allow for expectations with false-y values.
Adds a number of operations, makes use of chai expect instead of boolean for assertions to track stack traces, adds session and bucket entity types. Passes utilClient through to operation functions which are inlined into the operations map to get type checking to work. Modifies url helper function to make multipleMongoses detection work.
Adds a number of operations, makes use of chai expect instead of boolean
for assertions to track stack traces, adds session and bucket entity
types. Passes utilClient through to operation functions which are"
inlined into the operations map to get type checking to work.
Modifies url helper function to make multipleMongoses detection work.