import { describe, expect, it } from "bun:test"; import "./bun-loader-svelte"; describe("require", () => { it("SSRs `

Hello world!

` with Svelte", () => { const { default: App } = require("./hello.svelte"); const { html } = App.render(); expect(html).toBe("

Hello world!

"); }); }); describe("dynamic import", () => { it("SSRs `

Hello world!

` with Svelte", async () => { const { default: App }: any = await import("./hello.svelte"); const { html } = App.render(); expect(html).toBe("

Hello world!

"); }); });