9 lines
398 B
JavaScript
9 lines
398 B
JavaScript
import assert from "node:assert/strict";
|
|
import { readFile } from "node:fs/promises";
|
|
|
|
const worker = await import(new URL("../dist/server/index.js", import.meta.url));
|
|
assert.equal(typeof worker.default?.fetch, "function");
|
|
const html = await readFile(new URL("../dist/server/assets.js", import.meta.url), "utf8");
|
|
assert.match(html, /indexHtml/);
|
|
console.log("Life OS Worker artifact is valid");
|