Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore +server.test.ts and similar files #13008

Open
rChaoz opened this issue Nov 15, 2024 · 0 comments · May be fixed by #13009
Open

Ignore +server.test.ts and similar files #13008

rChaoz opened this issue Nov 15, 2024 · 0 comments · May be fixed by #13009
Labels
feature request New feature or request

Comments

@rChaoz
Copy link

rChaoz commented Nov 15, 2024

Describe the problem

I like to name my test files <file>.test.ts. This works great except that it doesn't work for +<whatever> files, instead throwing this error:

Files prefixed with + are reserved (saw src/routes/(app)/board/[board_id=board_id]/+server.test.ts)

Describe the proposed solution

Ignore +-files that contain .test. or .spec..

Alternatives considered

Use server.test.ts to test +server.ts. This isn't that big a deal, for me the most annoying part is that my IDE doesn't group it under the regular file anymore:

image

This is very useful as they are hidden by default, so when I need to look through the repository for something specific the file tree isn't polluted by the test files.

Importance

nice to have

Additional Information

No response

@rChaoz rChaoz linked a pull request Nov 15, 2024 that will close this issue
6 tasks
@eltigerchino eltigerchino added the feature request New feature or request label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants