You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
e2e folder in SvelteKit template isn't type-checked #914
Currently, the Svelte template adds an e2e directory for Playwright tests. However, this directory isn't type-checked (see sveltejs/kit#15254). We have 3 options:
Rename "e2e" to "tests" which is covered by the generated tsconfig.json
Change the generated tsconfig.json to recognise the "e2e" directory
Include it via the SvelteKit typescript config option
playwright.config.ts is today looking at this folder e2e
e2e & vitest will do:
Me, I'm always changing stuff to have e2e tests close to the route, so I would move e2e/demo.test.ts to src/routes/page.svelte.e2e.ts and update the conf to look for tests ending with e2e.ts
Bonus, no confusion between unit & e2e files,
Activity
[-]Rename `e2e` folder to `tests`[/-][+]e2e folder in SvelteKit template isn't type-checked[/+]jycouet commentedon Feb 7, 2026
Yes we should fix this!
Some random points:
playwright.config.tsis today looking at this foldere2eMe, I'm always changing stuff to have e2e tests close to the route, so I would move
e2e/demo.test.tstosrc/routes/page.svelte.e2e.tsand update the conf to look for tests ending withe2e.tsBonus, no confusion between unit & e2e files,
And it would solve typecheck.
What do you think?
wyMinLwin commentedon Feb 9, 2026
I tried to solved by simply renaming it in PR #919