Skip to content

Include e2e/ in tsconfig.json so Playwright specs are type-checked #185

@arasaka-net

Description

@arasaka-net

The include array in tsconfig.json restricts tsc to src, leaving the Playwright specs in e2e/ outside the type check. Broaden the include so npm run typecheck catches regressions in e2e tests as well.

Context
tsconfig.json currently sets "include": ["src"], which means tsc --noEmit never reads e2e/smoke.test.js. Any future Playwright helper that drifts from @playwright/test types — wrong fixture shape, misspelled locator API, missing await — will silently ship until it fails at runtime. Extending include to also cover e2e is a one-line change that tightens the LLM feedback loop: an agent that writes a new end-to-end test will get immediate type-check feedback instead of learning about the mistake only when Playwright runs.

Affected Files

  • tsconfig.json:13 — extend include to ["src", "e2e"]

Requirements

  • tsconfig.json include lists both src and e2e.
  • npm run typecheck succeeds after the change with no new errors.
  • If type errors surface in existing e2e code they are fixed in the same pull request.

Verification

  • npm ci
  • npm run typecheck
  • grep -n '"e2e"' tsconfig.json

Not In Scope

Evidence

  • tsconfig.json:13"include": ["src"] excludes the e2e directory from tsc
  • e2e/smoke.test.js:1 — Playwright spec exists but is never visited by the type checker
  • package.json:12typecheck script is plain tsc with no alternate project file to cover e2e

Arasaka Queue Planning Division.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions