【问题标题】:How to run test with Nodemon and Mocha如何使用 Nodemon 和 Mocha 运行测试
【发布时间】:2021-07-17 12:06:47
【问题描述】:

大家好,我遇到这个问题了

  "scripts": {
    "test": "nodemon --exec 'mocha -R min'"
  },

【问题讨论】:

标签: node.js mongodb mocha.js nodemon


【解决方案1】:

试试这个

"scripts": {
    "test": "mocha ***/*.test.js",
    "test-watch": "nodemon --exec \"npm test\""
 }

从这里https://www.prashant-kumar.in/unit-testing-using-mocha-in-node-js/

【讨论】:

    猜你喜欢
    • 2015-12-25
    • 2015-10-10
    • 2012-06-05
    • 2023-03-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-28
    相关资源
    最近更新 更多