Skip to content

Commit 95d917b

Browse files
committed
test: skip tests for #14115 if MongoDB < 5
1 parent dadac4e commit 95d917b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/query.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4385,6 +4385,11 @@ describe('Query', function() {
43854385
});
43864386

43874387
it('does not apply sibling path defaults if using nested projection (gh-14115)', async function() {
4388+
const version = await start.mongodVersion();
4389+
if (version[0] < 5) {
4390+
return this.skip();
4391+
}
4392+
43884393
const userSchema = new mongoose.Schema({
43894394
name: String,
43904395
account: {

0 commit comments

Comments
 (0)