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.