fix(backfill): nest-build spec typing (unblocks #133 deploy) #134

Merged
root merged 1 commits from fix/backfill-lifo-fast-lane into main 2026-06-12 11:47:25 +03:00
Showing only changes of commit a7678acbe1 - Show all commits

View File

@@ -18,7 +18,9 @@ function makeDb(limitResults: unknown[][]) {
function makeDeps(opts: { waiting: number; limitResults: unknown[][] }) {
const queue = {
add: vi.fn(async () => undefined),
// typed args so `.mock.calls[i]` is `unknown[]` (not a 0-length tuple) — the
// production `nest build` compiles spec files and rejects tuple-index access.
add: vi.fn((..._args: unknown[]) => Promise.resolve(undefined)),
getJobCounts: vi.fn(async () => ({ waiting: opts.waiting, delayed: 0, active: 0 })),
};
const redis = {