fix: Warning logged when setting option databaseOptions.disableIndexFieldValidation (#9880)

This commit is contained in:
Antoine Cormouls
2025-10-16 09:29:02 +02:00
committed by GitHub
parent 3f0ec42240
commit 1815b019b5
4 changed files with 12 additions and 2 deletions

View File

@@ -81,7 +81,8 @@ describe('Config Keys', () => {
connectTimeoutMS: 5000,
socketTimeoutMS: 5000,
autoSelectFamily: true,
autoSelectFamilyAttemptTimeout: 3000
autoSelectFamilyAttemptTimeout: 3000,
disableIndexFieldValidation: true
},
})).toBeResolved();
expect(loggerErrorSpy.calls.all().reduce((s, call) => s += call.args[0], '')).not.toMatch(invalidKeyErrorMessage);