From 355d1305b8a47fcfd3b1d0de9675cf626c376ded Mon Sep 17 00:00:00 2001 From: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com> Date: Wed, 16 Sep 2026 10:07:46 -0300 Subject: [PATCH] fix(tests): list dist/httpClientAbortGuard.mjs in the pack-artifact policy assertion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #13636 added the abort guard to PACK_ARTIFACT_REQUIRED_PATHS but left the expected missing-paths array in tests/unit/pack-artifact-policy.test.ts unchanged, so the test has been red on release/v3.8.51 ever since — 19 pass, 1 fail on a pristine tip, and on every PR whose changed-file set reaches it. The policy is the source of truth; this only teaches the assertion about the entry it already requires. 20/20 pass here. --- changelog.d/fixes/13636-pack-artifact-policy-abort-guard-test.md | 1 + tests/unit/pack-artifact-policy.test.ts | 1 + 2 files changed, 2 insertions(+) create mode 100644 changelog.d/fixes/13636-pack-artifact-policy-abort-guard-test.md diff --git a/changelog.d/fixes/13636-pack-artifact-policy-abort-guard-test.md b/changelog.d/fixes/13636-pack-artifact-policy-abort-guard-test.md new file mode 100644 index 0000000000..66266410b7 --- /dev/null +++ b/changelog.d/fixes/13636-pack-artifact-policy-abort-guard-test.md @@ -0,0 +1 @@ +- **fix(tests):** add `dist/httpClientAbortGuard.mjs` to the expected missing-paths list in `tests/unit/pack-artifact-policy.test.ts` — [#13636](https://github.com/diegosouzapw/OmniRoute/pull/13636) registered the file in `PACK_ARTIFACT_REQUIRED_PATHS` without updating the assertion, leaving the test red on the release tip for every PR that runs it ([#12732](https://github.com/diegosouzapw/OmniRoute/issues/12732)) diff --git a/tests/unit/pack-artifact-policy.test.ts b/tests/unit/pack-artifact-policy.test.ts index bd855302ac..8c5200fa36 100644 --- a/tests/unit/pack-artifact-policy.test.ts +++ b/tests/unit/pack-artifact-policy.test.ts @@ -299,6 +299,7 @@ test("findMissingArtifactPaths flags missing root runtime files in the tarball", "config/release/wreq-js-rust-notices.md", "dist/head-response-guard.cjs", "dist/http-method-guard.cjs", + "dist/httpClientAbortGuard.mjs", "dist/main-server-timeouts.mjs", "dist/open-sse/services/compression/engines/rtk/filters/generic-output.json", "dist/open-sse/services/compression/rules/en/filler.json",