From 794e86a7fcb8e7b9001ace69b674ef85f5352345 Mon Sep 17 00:00:00 2001 From: nikpundik Date: Fri, 15 Jun 2018 14:14:20 +0200 Subject: [PATCH] Using Jest with MongoDB example - wrong variables (#6472) --- docs/MongoDB.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/MongoDB.md b/docs/MongoDB.md index 620453e885f1..6435d2010484 100644 --- a/docs/MongoDB.md +++ b/docs/MongoDB.md @@ -35,10 +35,10 @@ module.exports = async function() { }; // Write global config to disk because all tests run in different contexts. - fs.writeFileSync(mongoFileConfigPath, JSON.stringify(mongoConfig)); + fs.writeFileSync(globalConfigPath, JSON.stringify(mongoConfig)); // Set reference to mongod in order to close the server during teardown. - global.__MONGOD__ = mongod; + global.__MONGOD__ = mongoServer; }; ```