Failing Test this.global.mflixClient.close()

I successfully connect with the server
mongo “mongodb+srv://m220student:m220password@cluster0-mine.mongodb.net/test”

But I fail the test in a separate and unrelated js

Determining test suites to run...Setup Mongo Connection
 FAIL  test/user-management.test.js
  ● Test suite failed to run

    TypeError: Cannot read property 'close' of undefined

      20 | 
      21 |   async teardown() {
    > 22 |     await this.global.mflixClient.close()
         |                                   ^
      23 |     await super.teardown()
      24 |   }
      25 | 

      at MongoEnvironment.teardown (test/config/mongoEnvironment.js:22:35)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        1.524s
Ran all test suites matching /user-management/i.
Teardown Mongo Connection
npm ERR! Test failed.  See above for more details.

Please recheck your .env file and make sure you running tests from mflix-js directory.

Kanika