Skip to content

Commit 46fce57

Browse files
committed
comment
1 parent 678f771 commit 46fce57

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/mongodb-ts-autocomplete/src/autocompleter.spec.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,17 @@ describe('MongoDBAutocompleter', function () {
136136
});
137137
});
138138

139+
/*
140+
This test can be used to recreate the list of deps in extract-types.ts.
141+
142+
ie. if you comment out the deps structure so it is an empty object, run
143+
extract-types (so it is just everything except the node types and Javascript
144+
lib) and then run this test, then it will essentially print what that structure
145+
needs to be.
146+
147+
The other tests would fail at the same time because they don't use the fallback
148+
service host, so typescript wouldn't load all the dependencies.
149+
*/
139150
it('autocompletes', async function () {
140151
await autocompleterWithFallback.autocomplete('db.foo.find({ fo');
141152

0 commit comments

Comments
 (0)