Skip to content

Commit e00149c

Browse files
committed
test(MongoInstance): change path to make consistent across systems
1 parent 40af0a0 commit e00149c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/mongodb-memory-server-core/src/util/__tests__/MongoInstance.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ describe('MongodbInstance', () => {
217217

218218
it('"_launchMongod" should throw an error if "mongodProcess.pid" is undefined', () => {
219219
const mongod = new MongodbInstance({ instance: { port: 0, dbPath: '' } }); // dummy values - they shouldnt matter
220-
const mockBinary = 'thisShouldNotExist';
220+
const mockBinary = '/tmp/thisShouldNotExist';
221221

222222
try {
223223
mongod._launchMongod(mockBinary);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`MongodbInstance "_launchMongod" should throw an error if "mongodProcess.pid" is undefined 1`] = `"{\\"binary\\":\\"/projects/nodejs/mongodb-memory-server/packages/mongodb-memory-server-core/thisShouldNotExist\\"}"`;
3+
exports[`MongodbInstance "_launchMongod" should throw an error if "mongodProcess.pid" is undefined 1`] = `"{\\"binary\\":\\"/tmp/thisShouldNotExist\\"}"`;

0 commit comments

Comments
 (0)