-
Notifications
You must be signed in to change notification settings - Fork 1.8k
test(NODE-3297): translate community typings tests to tsd format #2822
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
nbbeeken
commented
May 26, 2021
- Tests from DefinitelyTyped included in our testing
- Corrections to our types to bring us in sync with the community
- list of the tests that break due to desired drivers changes
3a63739
to
dbb1d19
Compare
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.
There are some forgotten export errors in the lint:
Error: src/collection.ts:1123:3 - (ae-forgotten-export) The symbol "FlattenIfArray" needs to be exported by the entry point index.d.ts
Error: src/cursor/find_cursor.ts:341:3 - (ae-forgotten-export) The symbol "SchemaMember" needs to be exported by the entry point index.d.ts
Error: src/mongo_types.ts:45:1 - (ae-forgotten-export) The symbol "Condition" needs to be exported by the entry point index.d.ts
Error: src/mongo_types.ts:45:1 - (ae-forgotten-export) The symbol "RootFilterOperators" needs to be exported by the entry point index.d.ts
7ff4702
to
6710435
Compare
f8f8d44
to
28ce0a9
Compare
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.
Left some notes so that we can go through and discuss
640876b
to
b83a6ac
Compare
$bitsAllClear?: BitwiseFilter; | ||
$bitsAllSet?: BitwiseFilter; | ||
$bitsAnyClear?: BitwiseFilter; | ||
$bitsAnySet?: BitwiseFilter; |
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 missing $rand
that is an empty document if we want to be fully complete in this list.
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 for catching it, added
/** | ||
* (Pre)allocated space for the collection in bytes. | ||
*/ | ||
storageSize: number; |
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.
Add freeStorageSize
, indexBuilds
, totalSize
, scaleFactor
here as well?
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.
added
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.
Nice job! LGTM
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.
LGTM! 🚀
- Tests from DefinitelyTyped included in our testing - Corrections to our types to bring us in sync with the community - list of the tests that break due to desired drivers changes
be9fe52
to
f90a10a
Compare
const name = connectionString.indexOf('mongodb+srv') >= 0 ? 'mongodb+srv' : 'normal'; | ||
it(`${name}`, makeConnectionTest(connectionString)); | ||
it(`${name}`, function () { | ||
if (SKIP_TESTS.include(configName)) this.skip(); |
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.
include => includes