11 lines
550 B
JavaScript
11 lines
550 B
JavaScript
/** Local-only browser regression harness; serves no account data or workspace files. */
|
|
import express from "express";
|
|
import {fileURLToPath} from "node:url";
|
|
|
|
const app = express();
|
|
app.use("/public/js", express.static(fileURLToPath(new URL("../public/js", import.meta.url))));
|
|
app.use("/browser-tests", express.static(fileURLToPath(new URL("../browser-tests", import.meta.url))));
|
|
const server = app.listen(0, "127.0.0.1", () => {
|
|
console.log(`Navigation tests: http://127.0.0.1:${server.address().port}/browser-tests/conversation.html`);
|
|
});
|