Test web adapter standalone mode with serve

This commit is contained in:
Cameron Pak
2026-04-06 06:58:35 -05:00
parent 54aae56734
commit 2eba931e39
+4 -3
View File
@@ -84,8 +84,9 @@ describe("web adapter via createBknd in standalone mode", () => {
adminOptions: { adminBasepath: "/admin" },
}
});
const app = await bknd.getApp();
expect(app.isBuilt()).toBe(true);
const handler = bknd.serve();
const res = await handler(new Request("http://localhost:3000/api/system/config"));
expect(res.status).toBe(200);
});
test("check admin route", async () => {
@@ -100,4 +101,4 @@ describe("web adapter via createBknd in standalone mode", () => {
const res = await handler(new Request("http://localhost:3000/admin"));
expect(res.status).toBe(200);
});
});
});