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 }}
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.
I don't know if this the correct place to put this problem (if it is not I apologize).
When setting up a project with SvelteKit where its tsconfig.json contains "extends": "./.svelte-kit/tsconfig.json", as it is present in the documentation, it breaks the tests when running vitest. If I delete this line the error does not happen.
More specifically the error below when running vitest --run. When there are several tests, only one of them fails with this error and the others pass:
vitest.config.ts
import { extractFromSvelteConfig } from 'vitest-svelte-kit';
export default extractFromSvelteConfig();
Is there something missing, or is this current limitation?
The text was updated successfully, but these errors were encountered:
This is going to be a limitation of how this project's set up since we're not actually generating the .svelte-kit folder but rather emulating the its vite plugin. Once sveltejs/kit#4329 is addressed hopefully we can just deprecate this project as svelte would expose its plugin fully.
In the meantime, I bet you could build svelte-kit (probably set up in your project as npm run build) before running vitest and it should work for this case. Hopefully that helps.
This is going to be a limitation of how this project's set up since we're not actually generating the .svelte-kit folder but rather emulating the its vite plugin. Once sveltejs/kit#4329 is merged hopefully we can just deprecate this project as svelte would expose its plugin fully.
In the meantime, I bet you could build svelte-kit (probably set up in your project as npm run build) before running vitest and it should work for this case. Hopefully that helps.
Thank you for your quick reply. It seems that is the only solution for now, that or saving the tsconfig.json generated.
Thank you again!
I don't know if this the correct place to put this problem (if it is not I apologize).
When setting up a project with SvelteKit where its
tsconfig.json
contains"extends": "./.svelte-kit/tsconfig.json",
as it is present in the documentation, it breaks the tests when runningvitest
. If I delete this line the error does not happen.More specifically the error below when running
vitest --run
. When there are several tests, only one of them fails with this error and the others pass:vitest.config.ts
Is there something missing, or is this current limitation?
The text was updated successfully, but these errors were encountered: