Skip to content

Typecheck the tests of 10 packages whose tsconfig covers src/ only (audit-engine and rules first) #1859

Closed

Description

@nc9

Follow-up to #1850 (pub#1858 fixed packages/parser). These packages' tsconfig leaves out their tests/, so the root bun run typecheck and CI never typecheck those tests: audit-engine (216 test files), rules (354), crawler (115), report (110), utils (40), tech-detect (31), core-contracts (19), config (8), waf-detect (4), threat-intel (3). page-classifier and synthetic-site already cover theirs.

Acceptance Criteria

  • Each listed package's tests are typechecked by the root bun run typecheck (and so by CI's "Format, lint, and typecheck" job), using the same pattern as packages/parser after pub#1858.
  • audit-engine and rules land first (they may be their own PRs); the rest can follow in one or more PRs.
  • Type errors surfaced are fixed without changing any assertion; any fix that would change test behaviour is called out in the PR.
  • A { timeout } passed in the wrong argument position is moved where the types expect it, and the PR notes that those timeouts now apply.

Metadata

Metadata

Assignees

No one assigned

    Labels

    chorecisize: M

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions