Skip to content

Commit a895ef7

Browse files
committed
test(NODE-7511): skip sinon test in nodeless tests
1 parent f36b754 commit a895ef7

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

test/integration/crud/find.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import {
88
type MongoClient,
99
MongoServerError,
1010
ObjectId,
11-
ReturnDocument
11+
ReturnDocument,
12+
runNodelessTests
1213
} from '../../mongodb';
1314
import { assert as test, filterForCommands } from '../shared';
1415

@@ -1078,6 +1079,11 @@ describe('Find', function () {
10781079
'regression test (NODE-6878): CursorResponse.emptyGetMore contains all CursorResponse fields',
10791080
{ requires: { topology: 'sharded' } },
10801081
async function () {
1082+
if (runNodelessTests) {
1083+
// This test relies on sinon spying on an internal method, but this doesn't work in nodeless due to the way sinon is bundled.
1084+
this.skip();
1085+
}
1086+
10811087
const collection = client.db('rewind-regression').collection('bar');
10821088

10831089
await collection.deleteMany({});

0 commit comments

Comments
 (0)