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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user