Skip to content

Commit

Permalink
Merge pull request #36 from hapinessjs/next
Browse files Browse the repository at this point in the history
Next into master
  • Loading branch information
juneil authored Jan 29, 2018
2 parents a67631b + 290421d commit 443a729
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hapiness/mongo",
"version": "1.1.3",
"version": "1.1.4",
"description": "Hapiness Module for MongoDB usage",
"main": "commonjs/index.js",
"types": "index.d.ts",
Expand Down
7 changes: 6 additions & 1 deletion src/module/utils/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class MongoTestUtils {
* @returns void
*/
/* istanbul ignore next */
public static startMongo(done: (err?) => {}): void {
public static startMongo(done: (err?) => {}, silent = true): void {
if (this.spawn) {
this.spawn.kill();
}
Expand All @@ -22,6 +22,11 @@ export class MongoTestUtils {
done(err);
});
setTimeout(() => done(), 1500);

if (!silent) {
this.spawn.stdout.on('data', console.log);
this.spawn.stderr.on('data', console.log);
}
}

/**
Expand Down

0 comments on commit 443a729

Please sign in to comment.