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.
Sure I can take a look at doing this, I would also encourage you to track sveltejs/kit#4329 which would essentially deprecate this project and would provide official functionality for what you're asking for.
I'll likely just expose this in the package itself so something like import x from 'vitest-svelte-kit/emulator' since I don't want to encourage others to do depend on this. Official support would be more beneficial to the community at large imo.
A sub-export is perfectly fine to me and I would agree, that an official solution would be the better way to go. Atm, most recommended solutions out there are just plain broken remappings of the internal sveltekit-modules and are bound to brake at some point. In this context, your solution is an improvement until something official arrives :)
I would like to ask if it would be possible to export the
kitModuleEmulator
-plugin?I was thinking of using it in https://github.com/storybookjs/builder-vite instead of mocking the sveltekit-modules by myself.
Thank you!
The text was updated successfully, but these errors were encountered: