Skip to content

Commit 244dad0

Browse files
committed
fixup: workaround + comment + TODO ticket
1 parent f69b38d commit 244dad0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/data-service/src/connect-mongo-client.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,15 @@ export async function connectMongoClientDataService({
219219
class CompassMongoClient extends MongoClient {
220220
constructor(url: string, options?: MongoClientOptions) {
221221
super(url, options);
222+
// TODO(COMPASS-9073): This is a workaround to fix some test failures we're seeing
223+
// in CI after the Node.js driver 6.13.0 release. We should investigate why
224+
// this fixes e2e tests, specifically the ones for verifying that the
225+
// "Queryable Encryption" collection badge is displayed correctly.
226+
Object.defineProperty(this, 'options', {
227+
...Object.getOwnPropertyDescriptor(this, 'options'),
228+
enumerable: false,
229+
configurable: true,
230+
});
222231
if (setupListeners) {
223232
setupListeners(this);
224233
}

0 commit comments

Comments
 (0)