Skip to content

core: test files are excluded from lint #441

Open

Description

@bpowers

src/core/tests/*.test.ts are not linted at all.
src/core/eslint.config.js lists tests/ in its ignore patterns, because the tsconfig it passes as parserOptions.project (tsconfig.browser.json) excludes tests, and linting a file outside that project fails with "The file was not found in any of the provided project(s)".
The ignore keeps the pre-commit hook passing but leaves the core tests unchecked.

Fix

Do what src/app and src/diagram already do: add a tsconfig.tests.json that extends the package tsconfig, includes tests/, and sets noEmit; pass both tsconfigs as project, and remove tests/ from the ignore list.
Alternative: if #892 decides to drop parserOptions.project, removing tests/ from the ignore list is enough.

Pointers

Activity

  1. added
    ci
    on Jun 8, 2026
  2. added
    hygiene
    on Oct 12, 2026
  3. changed the title [-]core: tsconfig.json excludes test files, breaking eslint[/-] [+]core: test files are excluded from lint[/+] on Oct 12, 2026
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

    cihygiene

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions