Page MenuHomeSealhub

add-route.test.ts
No OneTemporary

add-route.test.ts

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);
});

File Metadata

Mime Type
text/x-java
Expires
Wed, May 7, 19:37 (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
624713
Default Alt Text
add-route.test.ts (590 B)

Event Timeline