-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
Our event interfaces uses inheritance to document events that are emitted from within the driver but are made available on the MongoClient. It seems as though the client has opted into more events than are actually emitted: Ex. The 'close' event from topology is never emitted from the MongoClient.
type MongoClientEvents = Pick<TopologyEvents, (typeof MONGO_CLIENT_EVENTS)[number]>
A similar issue is present in ChangeStreamEvents, the typescript definitions report more events than are actually used by the class (ex. INIT).
AC
- Search emit invocations are verify there is at least one emit for each documented event string.