Skip to content

Parser tests are not typechecked (packages/parser tsconfig covers src/ only) #1850

Closed

Description

@nc9

Found in pub#1847 (#1844). packages/parser/tsconfig.json only includes src/, so the repo typecheck never looks at packages/parser/tests/. New test files there (for example nested-anchors-parse-time-1844.test.ts) can carry type errors that only show up as runtime failures or never.

Acceptance Criteria

  • packages/parser/tests/** is typechecked by the root bun run typecheck (a tsconfig.test.json wired into the typecheck script, or tests/ added to the package config), and CI's "Format, lint, and typecheck" job covers it.
  • Any type errors this surfaces in existing parser tests are fixed in the same PR.
  • Other packages/* whose tsconfig excludes their tests/ are listed in the PR (fixing them is optional and can be a follow-up).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cisize: S

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions