mongodb-mock

0.1.3 • Public • Published

mongodb-mock

mock your mongodb

the problem

your infrastructure team don't wants to install or configure the CI/CD pipeline to have mongodb running and you end up to use some module that tries to run all the operations implemented in mongodb but the module fails to deal with advanced queries and the frustration starts...

OS supported

  • linux
  • darwin

Usage

var mongoMock = require('mongodb-mock')
 
var mock = mongoMock()
 
mock.on('error', console.log)
 
// init mock
mock.start(function(err) {
  // err
})
 
// teardown
mock.stop(function(err) {
  // err
})

Development

this projet has been set up with a precommit that forces you to follow a code style, no jshint issues and 100% of code coverage before commit

to run test

npm test

to run jshint

npm run jshint

to run code style

npm run code-style

to run check code coverage

npm run check-coverage

to open the code coverage report

npm run open-coverage

Readme

Keywords

Package Sidebar

Install

npm i mongodb-mock

Weekly Downloads

0

Version

0.1.3

License

ISC

Last publish

Collaborators

  • quim