First argument passed in must be an array of types

Hi,

I can’t run the test with npm test -t projection. I tried to find something relating to this error but nothing that could help me to solve the issue. Do I have to use a older version of node ?
See below for more details

Thank you

Adam

npm test -t projection

server@1.0.0 test /home/adam/mflix-js
jest --passWithNoTests “projection”

Determining test suites to run…Setup Mongo Connection

RUNS test/projection.test.js
/home/adam/mflix-js/node_modules/mongodb/lib/core/sdam/topology.js:137
bson: options.bson || new BSON(),
^

TypeError: First argument passed in must be an array of types
at new Topology (/home/adam/mflix-js/node_modules/mongodb/lib/core/sdam/topology.js:137:29)
at new NativeTopology (/home/adam/mflix-js/node_modules/mongodb/lib/topologies/native_topology.js:36:5)
at createTopology (/home/adam/mflix-js/node_modules/mongodb/lib/operations/connect.js:454:16)
at /home/adam/mflix-js/node_modules/mongodb/lib/operations/connect.js:309:14
at /home/adam/mflix-js/node_modules/mongodb/lib/core/uri_parser.js:116:9
at parseConnectionString (/home/adam/mflix-js/node_modules/mongodb/lib/core/uri_parser.js:628:3)
at QueryReqWrap.callback (/home/adam/mflix-js/node_modules/mongodb/lib/core/uri_parser.js:110:7)
at QueryReqWrap.onresolve [as oncomplete] (dns.js:204:10)
npm ERR! Test failed. See above for more details.

Please check the code changes you have done for the ticket. If still not resolved, please share the code so that I can take a look.

Kanika