Bun
File SystemTest Runner

import, require, and test Svelte components with bun test

Use Bun's Plugin API to add a custom loader for .svelte files, and the test.preload option in bunfig.toml to load it before your tests run.