文件名称:mountebank-util
文件大小:12KB
文件格式:ZIP
更新时间:2024-05-31 23:12:13
JavaScript
带有mountebank接口的存根后端API,用于客户端端到端测试 如何安装 npm install -g mountebank 输入以下命令以运行mountebank服务器 mb npm install --save mountebank-util 如何使用 var Mountebank = require ( 'mountebank-util' ) var stubServer = new Mountebank ( 'port-number' ) //To stub api /hello stubServer . addResponse ( '/hello' , 'GET' , 'return value' ) stubServer . createImposter ( ) //To remove stub stubServer . deleteImposter ( ) 方法
【文件预览】:
mountebank-util-master
----package.json(340B)
----mountebank-util.js(1KB)
----package-lock.json(37KB)
----.gitignore(219B)
----README.md(1KB)