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({});