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
Myself and @FractalHQ are working on an "adder" that enables developers to introduce Jest tests to their SvelteKit project. We've recently encountered a similar issue to that faced by Vue and React developers, relating to Jest/Vite nuances. See here:
We've got a similar discussion going on in our repo, relating to us utilising vite-jest in our adder:
The two key points I'd like to address, are the following:
What changes would be needed to add svelte support to vite-jest (Relating to transformers, etc)
Are there any limitations that prevent us from applying vite-jest to svelte, due to the nature of how .svelte components are created?
Would we need to do these changes in co-ordination with another transformer such as svelte-jester to ensure that the .svelte extension is correctly transformed.
The text was updated successfully, but these errors were encountered:
As it stands, Vite-Jest has baked in support for React and Vue. See here:
https://github.com/sodatea/vite-jest/blob/6cb71219d13dfced3dbb0a2a6df3e437d80d9849/packages/vite-jest/jest-preset.js#L7
Myself and @FractalHQ are working on an "adder" that enables developers to introduce Jest tests to their SvelteKit project. We've recently encountered a similar issue to that faced by Vue and React developers, relating to Jest/Vite nuances. See here:
We've got a similar discussion going on in our repo, relating to us utilising
vite-jest
in our adder:The two key points I'd like to address, are the following:
vite-jest
(Relating to transformers, etc)vite-jest
to svelte, due to the nature of how.svelte
components are created?svelte-jester
to ensure that the.svelte
extension is correctly transformed.The text was updated successfully, but these errors were encountered: