mongodb-memory-server

v2.9.3
In-memory MongoDB Server. Designed with testing in mind, the server will allow you to connect your favourite ODM or client library to the MongoDB Server and run integration tests isolated from each other.
mongodb mongoose mock stub mockgoose mongodb-prebuilt mongomem

flow

flow

lint

eslint --ext .js ./src && npm run tslint

test

npm run coverage && npm run lint && npm run flow && npm run tscheck

build

npm-run-all build:*

watch

cross-env MONGOMS_DOWNLOAD_DIR=./tmp jest --watch

tslint

tslint -p . "src/**/*.d.ts"

tscheck

tsc

build:ts

find ./src -name '*.d.ts' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\/src\//\/lib\//g'`; done

coverage

cross-env MONGOMS_DOWNLOAD_DIR=./tmp jest --coverage

build:cjs

rimraf lib && babel src --ignore __tests__,__mocks__ -d lib

build:flow

find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\/src\//\/lib\//g'`.flow; done

postinstall

node ./postinstall.js

semantic-release

semantic-release

Metadata

  • MIT
  • Whatever
  • Nodkz
  • released 1/10/2019

Downloads

Maintainers