【文件属性】:
文件名称:node-mongoose-test-marker:用于标记和清理测试记录的 Mongoose 插件
文件大小:12KB
文件格式:ZIP
更新时间:2021-06-24 02:03:03
JavaScript
1.0.x API 参考
介绍
该模块将帮助您跟踪在项目测试期间创建的文档。 它还会向文档添加一些元数据,以便在出现任何问题时对其进行跟踪。
添加的元数据:
__test: {
pid : String ,
hostname : String ,
filename : String ,
tag : String
}
应用程序接口
模块 api 上所有可公开访问的方法。
示例用法
'use strict' ;
var test_marker = require ( 'mongoose-test-marker' ) ,
mongoose = require ( 'mongoose' ) ,
Schema = mongoose . Schema ,
schema = new Schema ( { foo : String }
【文件预览】:
node-mongoose-test-marker-master
----.gitignore(648B)
----.gjslintrc(115B)
----.eslintrc(6KB)
----package.json(1KB)
----LICENSE.md(1KB)
----.travis.yml(359B)
----test-util()
--------test-model.js(265B)
----index.js(87B)
----README.md(6KB)
----.eslintignore(62B)
----lib()
--------index.js(4KB)
----.npmignore(49B)
----test()
--------.eslintrc(438B)
--------mongoose-test-marker-test.js(7KB)