Npm test -t mongoclient error

Running this command gives me an error:

> server@1.0.0 test C:\Users\DJ\Desktop\mflix
> jest --passWithNoTests "mongoclient"

Error: Plugin/Preset files are not allowed to export objects, only functions. In C:\Users\DJ\Desktop\mflix\node_modules\babel-preset-stage-1\lib\index.js
** at createDescriptor (C:\Users\DJ\Desktop\mflix\node_modules@babel\core\lib\config\config-descriptors.js:178:11)**
** at items.map (C:\Users\DJ\Desktop\mflix\node_modules@babel\core\lib\config\config-descriptors.js:109:50)**
** at Array.map ()**
** at createDescriptors (C:\Users\DJ\Desktop\mflix\node_modules@babel\core\lib\config\config-descriptors.js:109:29)**
** at createPresetDescriptors (C:\Users\DJ\Desktop\mflix\node_modules@babel\core\lib\config\config-descriptors.js:101:10)**
** at presets (C:\Users\DJ\Desktop\mflix\node_modules@babel\core\lib\config\config-descriptors.js:47:19)**
** at mergeChainOpts (C:\Users\DJ\Desktop\mflix\node_modules@babel\core\lib\config\config-chain.js:320:26)**
** at C:\Users\DJ\Desktop\mflix\node_modules@babel\core\lib\config\config-chain.js:283:7**
** at buildRootChain (C:\Users\DJ\Desktop\mflix\node_modules@babel\core\lib\config\config-chain.js:120:22)**
** at loadPrivatePartialConfig (C:\Users\DJ\Desktop\mflix\node_modules@babel\core\lib\config\partial.js:85:55)**
npm ERR! Test failed. See above for more details.

Have anybody encounter any solution?

I suggest you read the many posts with exactly the same question just like the forum guidelines are asking you to do before posting a question again.

This has been addressed repeatedly already