Open wooseopkim opened 1 month ago
Adding statement await proxy.dispose();
here seems to fix this problem, but leads to another (and more serious) problem - dev server loses connection to local Miniflare.
I've found a better, potential fix: moving this line into the vite.middlewares.use
block. I have no idea what the side effects are as of now, though.
I know this is a ridiculous fix but
"test:unit": "sed -i '1s/.*/import adapter from \"@sveltejs\\/adapter-auto\";/' svelte.config.js && vitest run && sed -i '1s/.*/import adapter from \"@sveltejs\\/adapter-cloudflare\";/' svelte.config.js"
Describe the bug
Everything seems okay when using
adapter-auto
. Howevervitest
hangs Withadapter-cloudflare
. I saw this issue and triedpool: 'forks'
but it didn't fix the problem.Reproduction
https://github.com/wooseopkim/sveltekit-vitest-repro
This repository contains source code generated with
npm create svelte@latest
just with the additional dependency of@sveltejs/adapter-cloudflare
. Runnpm run test -- --run
to see the problem.Logs
Below is the output with
hanging-reporters
invite.config.js
.System Info
Severity
annoyance
Additional Information
No response