Skip to content

Fixture: change only vite.config.ts in a Vitest project #98

Closed

Description

@adityankale190895

Vitest reads vite.config.* when a project has no vitest.config.*, so editing vite.config.ts can change which tests run and how (for example test.include, resolve.alias or plugins). CONFIG_PATTERNS in git-diff.ts lists vitest.config. but not vite.config., and no test covers a change to vite.config.ts alone.

Add a synthetic-repository fixture: a small Vitest project with vite.config.ts (holding a test block) and no vitest.config.*, where the head commit changes only vite.config.ts. Record what DiffCI does today: which tests it selects, or whether it falls back to the full suite and with which reason.

Done when: the fixture and test are in tests/ (tests/git/git-diff.temp-repo.test.ts shows how to build a temporary repository), and the PR description says whether today's behaviour is safe. If DiffCI selects fewer tests than a test.include change could affect, say so: fixing that is a follow-up, and finding it is the point.

Setup and conventions are in CONTRIBUTING.md: run npm test, sign off commits with git commit -s (DCO). Comment here if you want to take it, and ask anything.

Activity

  1. added
    enhancement
    good first issue
    on Nov 11, 2026
  2. added a commit that references this issue on Nov 15, 2026
    a405ddf
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

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions