sveltejs / sveltejs/kit

Customizable filename pattern for test files in the `params` folder

Open
#10,867 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
20.8k
Forks
2.3k
Avg merge
1d 16h
Merged PRs (30d)
156

Description

Describe the problem

I am using a few different test runners in my project. I therefore use suffixes like .vitest.ts and .playwright.ts, etc instead of the conventional .test.ts and .spec.ts.

However, when I put a .vitest.ts file in my params folder to test a parameter matcher, SvelteKit complains:

Matcher names can only have underscores and alphanumeric characters — "uuid.vitest.ts" is invalid
Describe the proposed solution

A way to configure what SvelteKit should consider test files.

Alternatives considered

No response

Importance

nice to have

Additional Information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the params-folder matcher-name validation and the logic that identifies test files; inspect existing tests around that behavior. Define the configuration surface and verify that .vitest.ts and .playwright.ts files are excluded while matcher names remain validated.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
testing-qa, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.