1.1.1 • Published 3 years ago
@cubetool/plugin-testdata v1.1.1
cube 开发者工具 testdata 测试数据插件
注意:该模块是 cubetool 插件,直接使用 npm 方式安装无效。
安装
在 @cubetool/cli 工具下可以使用以下命令安装
cubetool plugin install @cubetool/plugin-testdata
在其他开发者工具中,可参考其对应文档。
使用
在 cube 项目下新建 testdata.json 文件可配置 mock 测试数据,示例:
{
"mid" : "0aff61a88e9fdc0741473096d24c326f",
"ext" : "{a:1, b:2, c: [1,2,3]}",
"idn" : "pic@so360",
"guid" : "xxx",
"huid" : "yyy",
"aid": "zzz",
"content_id": "aaa",
"tmprtp": "bbb"
}