0.1.3 • Published 10 years ago
mongodb-mock v0.1.3
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 testto run jshint
npm run jshintto run code style
npm run code-styleto run check code coverage
npm run check-coverageto open the code coverage report
npm run open-coverage