MERN v 2.0 npm test error

    Write your answer

    Start writing...

    Hello, you are running on Windows, so you may have to avoid harmony-proxies. In your package.json change in scripts / test : cross-env NODE_ENV=test PORT=8080 MONGO_URL=mongodb://localhost:27017/mern-test node_modules/.bin/nyc node --harmony-proxies node_modules/.bin/ava

    with : cross-env NODE_ENV=test PORT=8080 MONGO_URL=mongodb://localhost:27017 node_modules/.bin/nyc node_modules/.bin/ava --serial

    This fixed it for me. I'm running on a mac.

    Write a reply...

    Never miss an interesting discussion,
    when you sign up for Hashnode. Learn more

    loading ...