Skip to content

Commit 73f8427

Browse files
committed
chore(deadcode): update keeper test for post-trim allowlist
The CL-6815 trim removed the three usage-formatter exports; the scoped exemption keeper now pins the two remaining constants flags plus the negative sibling probe.
1 parent a95204a commit 73f8427

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

‎scripts/check-dead-exports.test.ts‎

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,12 @@ import {
2828
const repoRoot = join(import.meta.dir, "..");
2929

3030
// A probe dead export in one of the scoped files must fail the guard: the
31-
// exact-name exemptions cover only the five deferred-cleanup flags, never
32-
// the whole module.
31+
// exact-name exemptions cover only the remaining deferred-cleanup flags
32+
// (the usage-formatter flags were removed with their exports by the CL-6815
33+
// trim), never the whole module.
3334
describe("scoped exemptions", () => {
3435
test("the real allowlist covers the named flags but not a sibling probe", () => {
3536
const rules = loadAllowlist();
36-
expect(
37-
isAllowlisted(rules, "src/auth/codex/usage.ts", "fetchCodexUsage"),
38-
).toBe(true);
39-
expect(
40-
isAllowlisted(rules, "src/auth/codex/usage.ts", "fetchCodexModels"),
41-
).toBe(true);
42-
expect(isAllowlisted(rules, "src/auth/xai/usage.ts", "fetchXaiUsage")).toBe(
43-
true,
44-
);
4537
expect(
4638
isAllowlisted(
4739
rules,

0 commit comments

Comments
 (0)