drop-mongodb-collections:删除所有(非系统)mongodb 集合

时间:2021-05-29 09:41:50
【文件属性】:
文件名称:drop-mongodb-collections:删除所有(非系统)mongodb 集合
文件大小:50KB
文件格式:ZIP
更新时间:2021-05-29 09:41:50
nodejs testing mongodb JavaScript drop-mongodb-collections 删除所有非系统 mongodb 集合。 用于测试。 用法 > npm i drop-mongodb-collections --save-dev const dropMongoDbCollections = require ( 'drop-mongodb-collections' ) ( 'mongodb://localhost/tests' ) ; // Mocha describe ( 'something' , function ( ) { // Cleanup db before running tests beforeEach ( dropMongoDbCollections ) ; // Your tests go here } ) ;
【文件预览】:
drop-mongodb-collections-master
----.travis.yml(706B)
----.eslintrc(258B)
----index.js(2KB)
----.jsbeautifyrc(67B)
----package.json(1KB)
----test()
--------drop-mongodb-collections.js(2KB)
----package-lock.json(176KB)
----.gitignore(162B)
----CHANGELOG.md(2KB)
----README.md(574B)
----.eslintignore(11B)
----.gitattributes(221B)

网友评论