【文件属性】:
文件名称:grunt-mocha-hack:通过 grunt 运行 node.js lib Mocha 测试的 hacky 包装器。 (grunt-simple-mocha 的叉子)
文件大小:7KB
文件格式:ZIP
更新时间:2021-06-07 08:44:38
JavaScript
咕噜咕噜摩卡黑客
分叉版本。
Grunt 真的不喜欢在uncaughtException之后运行。
但是 Mocha 真的很喜欢让uncaughtException*运行。
从 grunt-simple-mocha 转换
// package.json
"grunt-simple-mocha" : "~0.x.x"
// -- to --
"grunt-mocha-hack" : "~0.1.0"
// grunt.js or Gruntfile.js
simplemocha: {
// ...
}
// -- to --
'mocha-hack' : {
// ...
}
grunt . loadNpmTasks ( 'grunt-simple-mocha' ) ;
// -- to --
grunt . loadNpmTasks ( 'grunt-mocha-ha
【文件预览】:
grunt-mocha-hack-master
----.gitignore(29B)
----package.json(937B)
----.travis.yml(58B)
----Gruntfile.js(433B)
----LICENSE-MIT(1KB)
----README.md(1KB)
----test()
--------test.js(2KB)
--------fixtures()
----tasks()
--------mocha-hack.js(4KB)