Skip to content

Commit 2379a0d

Browse files
authored
Merge pull request #331 from noseworthy/prep-for-jest-28
2 parents a94d84e + b30747c commit 2379a0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

environment.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ const globalConfigPath = path.join(cwd, 'globalConfig.json');
1313
const options = getMongodbMemoryOptions();
1414
const isReplSet = Boolean(options.replSet);
1515

16+
const TestEnvironment = NodeEnvironment.default ? NodeEnvironment.default : NodeEnvironment;
17+
1618
debug(`isReplSet`, isReplSet);
1719

1820
let mongo = isReplSet ? new MongoMemoryReplSet(options) : new MongoMemoryServer(options);
1921

20-
module.exports = class MongoEnvironment extends NodeEnvironment {
22+
module.exports = class MongoEnvironment extends TestEnvironment {
2123
constructor(config, context) {
2224
super(config, context);
2325
}

0 commit comments

Comments
 (0)