没有合适的资源?快使用搜索试试~ 我知道了~
mock-stdio::muted_speaker:模拟stdio输出以进行测试
共10个文件
json:2个
js:2个
md:1个
需积分: 13 0 下载量 173 浏览量
2021-05-18
14:02:14
上传
评论
收藏 6KB ZIP 举报
温馨提示
模拟stdio 这只是一个简单的模块,使您可以轻松测试(或忽略)需要console.log代码,或者以其他方式写入标准输出和标准错误。 安装 npm install --save-dev mock-stdio 例子 var mockIo = require ( 'mock-stdio' ) ; var expect = require ( 'chai' ) . expect ; describe ( 'thing' , function ( ) { it ( 'writes to standard out' , function ( ) { // Start the mock... it will not be possible to write to // the real stdout and stderr when this is active. mo
资源推荐
资源详情
资源评论
收起资源包目录
mock-stdio-master.zip (10个子文件)
mock-stdio-master
.gitattributes 651B
.npmignore 542B
.travis.yml 1KB
test
index.test.js 1KB
README.md 2KB
.editorconfig 187B
.brackets.json 287B
.gitignore 516B
index.js 1KB
package.json 985B
共 10 条
- 1
资源评论
善音
- 粉丝: 21
- 资源: 4611
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功