import { expect, test } from "bun:test"; import { collectScripts } from "../src/script-selection.ts"; test("island markup pulls in the island bootstrap", () => { const scripts = collectScripts(`
`); expect(scripts).toContain("/__wrnexus/islands.js"); }); test("markup without islands ships no island bootstrap", () => { expect(collectScripts(`plain server html
`)).toEqual([]); }); test("islands alone do not pull in the reactive runtime", () => { const scripts = collectScripts(``); expect(scripts).not.toContain("/__wrnexus/reactive.js"); });