Cannot resolve path in Mocha

前端 未结 7 1245
被撕碎了的回忆
被撕碎了的回忆 2020-12-30 21:45

I am currently using Nitrous, which shouldn\'t matter, but I needed to install mocha so I typed in:

npm install - g mocha.

Everything insta

7条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-30 22:38

    By default, mocha includes ./test/*.js. So if that is where your tests live, just running mocha is all you need.

    If you have your tests in test/unit, you might want to run mocha ./test/unit/*.js.

提交回复
热议问题