( seeds: string | string[] | HostAddress | HostAddress[], options: Partial<TopologyOptions> )
| 326 | * accept a client with access to a logger. This helper serves to keep old tests working with minimal |
| 327 | * changes*/ |
| 328 | export function topologyWithPlaceholderClient( |
| 329 | seeds: string | string[] | HostAddress | HostAddress[], |
| 330 | options: Partial<TopologyOptions> |
| 331 | ): Topology { |
| 332 | return new Topology( |
| 333 | new MongoClient( |
| 334 | 'mongodb://iLoveJavaScript', |
| 335 | options.serverSelectionTimeoutMS |
| 336 | ? { serverSelectionTimeoutMS: options.serverSelectionTimeoutMS } |
| 337 | : {} |
| 338 | ), |
| 339 | seeds, |
| 340 | options as TopologyOptions |
| 341 | ); |
| 342 | } |
| 343 | |
| 344 | export async function itInNodeProcess( |
| 345 | title: string, |
no outgoing calls