nestest:使用 `npm test` 测试嵌套节点包

时间:2024-07-23 21:56:07
【文件属性】:

文件名称:nestest:使用 `npm test` 测试嵌套节点包

文件大小:4KB

文件格式:ZIP

更新时间:2024-07-23 21:56:07

JavaScript

巢穴 使用npm test测试嵌套的节点包 用 如果你编写嵌套的 npm 包,测试 pushd 到子包中只是为了运行npm test会变得很痛苦。 相反,在*包嵌套脚本中包含nestest ,并且npm test将在所有嵌套的子包上调用! " scripts " : { " test " : " mocha test/test.js && nestest " }, 应用程序接口 如果要在嵌套子包上递归运行其他命令,请查看echo-name或install 。 您可以更改命令和参数: var nestest = require ( './index.js' ) nestest . command = '/path/to/new/shell/command/to/execute/recursively' nestest . args = [ '-f' ] // must


【文件预览】:
nestest-master
----.gitignore(39B)
----package.json(810B)
----bin(55B)
----install(155B)
----index.js(2KB)
----README.md(975B)
----test()
--------package.json(66B)
--------test.js(452B)
--------nest()
----echo-name(217B)

网友评论