Npm test -t mongoclient error

FAIL test/lessons/mongoclient.spec.js (6.941s)
MongoClient
√ Client initialized with URI (1431ms)
× Client initialized with URI and options (490ms)
√ Database handle created from MongoClient (1646ms)
× Collection handle created from database handle (486ms)

● MongoClient › Client initialized with URI and options

TypeError: Cannot read property 'close' of undefined

  67 |       expect(e).toBeNull()
  68 |     } finally {
> 69 |       testClient.close()
     |                  ^
  70 |     }
  71 |   })
  72 |

  at close (test/lessons/mongoclient.spec.js:69:18)
  at tryCatch (node_modules/regenerator-runtime/runtime.js:63:40)
  at Generator.invoke [as _invoke] (node_modules/regenerator-runtime/runtime.js:293:22)
  at Generator.throw (node_modules/regenerator-runtime/runtime.js:118:21)
  at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
  at _throw (node_modules/@babel/runtime/helpers/asyncToGenerator.js:29:9)

● MongoClient › Collection handle created from database handle

TypeError: Cannot read property 'close' of undefined

  137 |       expect(e).toBeNull()
  138 |     } finally {
> 139 |       testClient.close()
      |                  ^
  140 |     }
  141 |   })
  142 | })

  at close (test/lessons/mongoclient.spec.js:139:18)
  at tryCatch (node_modules/regenerator-runtime/runtime.js:63:40)
  at Generator.invoke [as _invoke] (node_modules/regenerator-runtime/runtime.js:293:22)
  at Generator.throw (node_modules/regenerator-runtime/runtime.js:118:21)
  at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
  at _throw (node_modules/@babel/runtime/helpers/asyncToGenerator.js:29:9)

Test Suites: 1 failed, 1 total
Tests: 2 failed, 2 passed, 4 total
Snapshots: 0 total
Time: 7.207s
Ran all test suites matching /mongoclient/i.
Teardown Mongo Connection
npm ERR! Test failed. See above for more details.

Please search our forum
You will get clues

TypeError: Cannot read property ‘close’ of undefined