Skip to content

How do you mock $env/static/public when using the Sveltekit framework? #25267

Answered by JReinhold
alexbjorlig asked this question in Help
Discussion options

You must be logged in to vote

"Supported" means that it doesn't break anything and that it reads the same values as your SvelteKit application does. It does not mean that you can mock it, only the properties listed in the How To Mock section are mockable.

I'm open to suggestions if you think the support-table can be clearer about this.

Can you describe the use case for needing to define different env vars on a per-story basis?

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@JReinhold
Comment options

@alexbjorlig
Comment options

Answer selected by JReinhold
Comment options

You must be logged in to vote
1 reply
@alexhladun-orennia
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants