Docs/Skills and code/tests/

tests/qualification-retry-policy.test.js

Code14 lines0.8 KBtests/

import test from "node:test";
import assert from "node:assert/strict";
import { shouldRetryIndividually } from "../src/analysis/qualification-retry-policy.js";

test("malformed batch JSON retries affected channels individually once", () => {
  assert.equal(shouldRetryIndividually({ retry: false, enabled: true, itemCount: 8 }), true);
  assert.equal(shouldRetryIndividually({ retry: false, enabled: true, itemCount: 1 }), true);
});
test("individual retry failures do not recurse and disabled retries stay disabled", () => {
  assert.equal(shouldRetryIndividually({ retry: true, enabled: true, itemCount: 1 }), false);
  assert.equal(shouldRetryIndividually({ retry: false, enabled: false, itemCount: 8 }), false);
  assert.equal(shouldRetryIndividually({ retry: false, enabled: true, itemCount: 0 }), false);
});

Shown as it is in the repository at build time (2026-11-03); the home directory appears as <home>. If this page and the file differ, the file is right. Back to the catalogue.