From a895ef7fc467a52c4eefd0806e5e1fbc19925447 Mon Sep 17 00:00:00 2001 From: Pavel Safronov Date: Tue, 7 Apr 2026 13:43:30 -0700 Subject: [PATCH] test(NODE-7511): skip sinon test in nodeless tests --- test/integration/crud/find.test.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/integration/crud/find.test.ts b/test/integration/crud/find.test.ts index bb6fc2146e4..0d14f237a08 100644 --- a/test/integration/crud/find.test.ts +++ b/test/integration/crud/find.test.ts @@ -8,7 +8,8 @@ import { type MongoClient, MongoServerError, ObjectId, - ReturnDocument + ReturnDocument, + runNodelessTests } from '../../mongodb'; import { assert as test, filterForCommands } from '../shared'; @@ -1078,6 +1079,11 @@ describe('Find', function () { 'regression test (NODE-6878): CursorResponse.emptyGetMore contains all CursorResponse fields', { requires: { topology: 'sharded' } }, async function () { + if (runNodelessTests) { + // This test relies on sinon spying on an internal method, but this doesn't work in nodeless due to the way sinon is bundled. + this.skip(); + } + const collection = client.db('rewind-regression').collection('bar'); await collection.deleteMany({});