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.
2 parents dd39133 + 472d2c8 commit 104af11Copy full SHA for 104af11
lib/connection.js
@@ -28,6 +28,10 @@ const decorateBulkWriteResult = require('./helpers/model/decorateBulkWriteResult
28
const arrayAtomicsSymbol = require('./helpers/symbols').arrayAtomicsSymbol;
29
const sessionNewDocuments = require('./helpers/symbols').sessionNewDocuments;
30
31
+// Snapshot the native Date constructor to ensure both Date.now() and new Date() (and other Date methods)
32
+// bypass timer mocks such as those set up by useFakeTimers().
33
+const Date = globalThis.Date;
34
+
35
/**
36
* A list of authentication mechanisms that don't require a password for authentication.
37
* This is used by the authMechanismDoesNotRequirePassword method.
0 commit comments