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.
Write browser DOM tests with Bun and happy-dom
Use Happy DOM to write browser tests with Bun's test runner. Happy DOM implements mocked versions of browser APIs like document and location .
Extract links from a webpage using HTMLRewriter
Bun's HTMLRewriter API extracts links from HTML. Chain CSS selectors to match the elements, text, and attributes you want to process, then pass .transform a