-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Is it possible to exclude +page.test.ts ? #7121
Comments
I think sveltekit should continue treating all files with the + prefix as special route files and throw this error. The whole point of having runes in route file names was to delineate them as special for sveltekit, this would undo that and at that point why have a weird prefix for files at all |
@madeleineostoja so what you suggest to call file name for tests of "+page.svelte" ? Simply like "page.test.ts ? |
By simply removing |
agree, dunno why this is still open |
You can also use a different prefix char, eg Adding an exception to the |
Closing as we reached consensus that we don't want to make an exception for tests here. |
Describe the problem
Sveltkit fails with this message:
error when starting dev server:
Error: Files prefixed with + are reserved (saw src/routes/+page.test.ts)
at analyze (file:///C:/_app/frontend/node_modules/@sveltejs/kit/src/core/sync/create_manifest_data/index.js:383:10)
Describe the proposed solution
Possibility to exclude some files
Alternatives considered
No response
Importance
nice to have
Additional Information
Not really important, it's just to have
+page.svelte
+page.test.ts
close together in explorer.
The text was updated successfully, but these errors were encountered: