Something went wrong. Try again.
Monorepo for the nibling.run platform
Something went wrong. Try again.
123456789101112131415161718192021// TEST FIXTURE — not linked from the demo index. tests/fs.spec.ts drives// window.__runtime (the Kernel, with its fs facade) directly so the fs slice is// verified without depending on the not-yet-built demo harness UI.import { boot } from "@nibling/kernel";
const out = document.getElementById("out");const errEl = document.getElementById("err");
try { const runtime = await boot(); // Small starting tree: a file, a dir, and a nested file. runtime.writeTree({ "/app/one.txt": "one", "/app/dir/nested.txt": "nested", }); window.__runtime = runtime; out.textContent = "fixture-ready";} catch (e) { errEl.textContent = "BOOT FAILED: " + (e?.message ?? String(e));}