Db-connection.test fails

I get the following errors. I am able to see the data in compass and the database loads in my browser. what am i doing wrong?

$ npm test -t connection-pooling

server@1.0.0 test /Users/HJD/Desktop/M220/mflix-js
jest --passWithNoTests “connection-pooling”

Determining test suites to run…Setup Mongo Connection
FAIL test/connection-pooling.test.js
● Test suite failed to run

TypeError: Cannot assign to read only property 'Symbol(Symbol.toStringTag)' of object '#<process>'

  1 | const MongoClient = require("mongodb").MongoClient
  2 | const NodeEnvironment = require("jest-environment-node")
> 3 | module.exports = class MongoEnvironment extends NodeEnvironment {
    |                  ^
  4 |   async setup() {
  5 |     if (!this.global.mflixClient) {
  6 |       this.global.mflixClient = await MongoClient.connect(

  at exports.default (node_modules/jest-util/build/create_process_object.js:15:34)
  at new MongoEnvironment (test/config/mongoEnvironment.js:3:18)

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

Correct error print out (but similar error on connection pooling)

$ npm test -t db-connection.test

server@1.0.0 test /Users/HJD/Desktop/M220/mflix-js
jest --passWithNoTests “db-connection.test”

Determining test suites to run…Setup Mongo Connection
FAIL test/db-connection.test.js
● Test suite failed to run

TypeError: Cannot assign to read only property 'Symbol(Symbol.toStringTag)' of object '#<process>'

  1 | const MongoClient = require("mongodb").MongoClient
  2 | const NodeEnvironment = require("jest-environment-node")
> 3 | module.exports = class MongoEnvironment extends NodeEnvironment {
    |                  ^
  4 |   async setup() {
  5 |     if (!this.global.mflixClient) {
  6 |       this.global.mflixClient = await MongoClient.connect(

  at exports.default (node_modules/jest-util/build/create_process_object.js:15:34)
  at new MongoEnvironment (test/config/mongoEnvironment.js:3:18)

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

solved all of the posted problems

db-connect-error

Getting error during npm test -t db-connection in cmd.
but when i press button in the status page (localhost:5000/status) it returns the error.
Command is not working and directing towards error in setup.js file in the config folder.
Any suggestion

Resolution:

$ node -v # confirm the current version is 11.11.0
$ npm install -g n # install the version control module for node
$ sudo n 11.10.1 # install the node in version 11.10.1
$ node -v # confirm the current version changed to 11.10.1