chore(db-mongodb): tsconfig uses strict: true and noUncheckedIndexedAccess: true (#11444)

Migrates the `db-mongodb` package to use `strict: true` and
`noUncheckedIndexedAccess: true` TSConfig properties.
This greatly improves code quality and prevents some runtime errors or
gives better error messages.
This commit is contained in:
Sasha
2025-03-01 00:17:24 +02:00
committed by GitHub
parent f7f5651004
commit 79a7b4ad02
52 changed files with 1370 additions and 961 deletions

View File

@@ -1129,7 +1129,6 @@ describe('Queues', () => {
expect(jobAfterRun.input.amountTask1Retried).toBe(0)
})
it('ensure jobs can be cancelled using payload.jobs.cancelByID', async () => {
payload.config.jobs.deleteJobOnComplete = false
@@ -1201,7 +1200,7 @@ describe('Queues', () => {
expect(jobAfterRun.error?.cancelled).toBe(true)
expect(jobAfterRun.processing).toBe(false)
})
it('can tasks throw error', async () => {
payload.config.jobs.deleteJobOnComplete = false