Customizable filename pattern for test files in the `params` folder
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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