We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76889a6 commit 611f227Copy full SHA for 611f227
packages/mongodb-memory-server-core/src/util/MongoInstance.ts
@@ -204,7 +204,7 @@ export default class MongoInstance {
204
this.debug(`Called MongoInstance._launchKiller(parent: ${parentPid}, child: ${childPid}):`);
205
// spawn process which kills itself and mongo process if current process is dead
206
const killer = spawnChild(
207
- process.argv[0],
+ process.env['NODE'] ?? process.argv[0], // try Environment variable "NODE" before using argv[0]
208
[
209
path.resolve(__dirname, '../../scripts/mongo_killer.js'),
210
parentPid.toString(),
0 commit comments