Skip to content

Commit c2e5ab5

Browse files
committed
chore: fix coverage reports
1 parent 4ef80d5 commit c2e5ab5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"watch": "cross-env MONGOMS_DOWNLOAD_DIR=./tmp jest --watch",
7878
"coverage": "cross-env MONGOMS_DOWNLOAD_DIR=./tmp jest --coverage",
7979
"lint": "eslint 'src/**/*.{js,ts}'",
80-
"test": "npm run lint && npm run tscheck && jest",
80+
"test": "npm run lint && npm run tscheck && npm run coverage",
8181
"tscheck": "tsc --noEmit",
8282
"semantic-release": "semantic-release",
8383
"postinstall": "node ./postinstall.js"

src/MongoMemoryReplSet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import events from 'events';
1+
import EventEmitter from 'events';
22
import { Admin, MongoClient } from 'mongodb';
33
import MongoMemoryServer from './MongoMemoryServer';
44
import { MongoMemoryServerOptsT } from './MongoMemoryServer';
@@ -45,7 +45,7 @@ export interface MongoMemoryReplSetOptsT {
4545
debug?: boolean;
4646
}
4747

48-
export default class MongoMemoryReplSet extends events.EventEmitter {
48+
export default class MongoMemoryReplSet extends EventEmitter {
4949
servers: MongoMemoryServer[] = [];
5050
opts: MongoMemoryReplSetOptsT;
5151
debug: DebugFn;

0 commit comments

Comments
 (0)