import { RealAppTest } from "./test_utils/test-on-real-app.js"; describe("add route test", () => { it("creates minimal sealious app and adds a simple route that works", async function () { const test_app = await RealAppTest.init(); const path = "/sample"; await test_app.runSealgenCommand(`add-route --url=${path} --action=Sample --mode=page`); await test_app.start(); const res = await test_app.httpGET(path); if (res.status != 200) { throw new Error("url generated by add-route exists but doesn't return 200"); } await test_app.close(); }).timeout(100 * 1000); });