sveltekit-vitest-issue

Sveltekit Vitest Issue

Example of Vitest/Sveltekit failures with public and dynamic imports

Vitest/Sveltekit Import issue

Sveltekit ticket (#10446)

Install

npm install

Building

To build the test app app:

cp .env.example .env

Running (this will work)

To run the service and see the working environment variable imports:

npm run dev

Testing (this will not work)

To run and see the error that occurs on environment variable imports:

npm run test

Top categories

Loading Svelte Themes