mongodb-js / mongodb-prebuilt

Install MongoDB prebuilt package using npm https://npmjs.org/package/mongodb-prebuilt
ISC License
56 stars 50 forks source link

Add stop() and kill() methods to manage mongod #49

Closed deployable closed 5 years ago

deployable commented 6 years ago

Mocha 4+ changed behaviour to "no longer force the process to exit once all tests complete" so async tasks will keep the test run from completing, the prebuilt-mongod daemon is such a task

This adds helper functions to allow a test to finish

stop() will send a SIGINT to cleanly shutdown kill() will send a SIGTERM

Fixes #38