From 352d48fedc8feebb22a05f8bd5b882cbda5d1214 Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Mon, 27 Jul 2026 21:12:14 -0300 Subject: [PATCH] test(pack): list ensureAndroidCacheDir.mjs in the pack-artifact fixture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #8593 registered bin/cli/utils/ensureAndroidCacheDir.mjs in PACK_ARTIFACT_REQUIRED_PATHS so the Android/Termux cache module cannot silently drop out of the npm tarball. Three test files read that list; only pack-artifact-entrypoint-closures.test.ts derives it dynamically. This one hardcodes the expected set, so it went red on a correct change. Adding the entry here, not relaxing the assertion — a hardcoded fixture is what makes an accidental REMOVAL from the required-paths list loud, which is the whole point of the guard. --- changelog.d/maintenance/train2-pack-artifact-and-ratchet.md | 1 + tests/unit/pack-artifact-policy.test.ts | 1 + 2 files changed, 2 insertions(+) create mode 100644 changelog.d/maintenance/train2-pack-artifact-and-ratchet.md diff --git a/changelog.d/maintenance/train2-pack-artifact-and-ratchet.md b/changelog.d/maintenance/train2-pack-artifact-and-ratchet.md new file mode 100644 index 0000000000..c3660af40e --- /dev/null +++ b/changelog.d/maintenance/train2-pack-artifact-and-ratchet.md @@ -0,0 +1 @@ +- chore(quality): align the pack-artifact expected-path fixture with the Android/Termux cache module added in #8593, and re-pin the `chatCore.ts` ceiling grown by the merge-train 2 batch diff --git a/tests/unit/pack-artifact-policy.test.ts b/tests/unit/pack-artifact-policy.test.ts index fb55754262..e311cdc048 100644 --- a/tests/unit/pack-artifact-policy.test.ts +++ b/tests/unit/pack-artifact-policy.test.ts @@ -109,6 +109,7 @@ test("findMissingArtifactPaths flags missing root runtime files in the tarball", "bin/aliasResolverHook.mjs", "bin/cli/data-dir.mjs", "bin/cli/program.mjs", + "bin/cli/utils/ensureAndroidCacheDir.mjs", "bin/cli/utils/storageKeyProvision.mjs", "bin/cli/utils/versionFastPath.mjs", "bin/mcp-server.mjs",