Merge pull request 'fix(backfill): nest-build spec typing (unblocks #133 deploy)' (#134) from fix/backfill-lifo-fast-lane into main

This commit was merged in pull request #134.
This commit is contained in:
2026-06-12 08:47:25 +00:00

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 = {