我是SinonJs的初学者,当我尝试写一些demo代码时,它不能工作,我不知道为什么。 app.js常量db =需要(‘.// without any other codes, it will throw Error: Cannot find module '@sinonjs/referee-sinon' 我使用mocha来运行测试。sinon-test", "description&
我正在做一个使用coffeescript进行开发和测试的项目。我在node中运行测试时启用了mocha的--watch标志,这样我就可以在进行更改时自动运行测试。虽然这在某种程度上是可行的,但在保存某些内容时,只重新编译./test/test.*. saved文件。这是我的目录结构:-- # Dev files go here
/test