Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2603

Create withStubbedClient test helper

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Testing
    • Labels:
      None

      Implement a withStubbedClient helper than is the equivalent of withMonitoredClient, but using stubs for Topology and Server classes.

       

      This will be helpful for writing unit tests (rather than functional tests) for things like command construction, which don't benefit from testing against a live server.

            Assignee:
            Unassigned Unassigned
            Reporter:
            eric.adum@mongodb.com Eric Adum (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: