test(FN-1893): add comprehensive QMD test coverage

- Add QMD route success tests in dashboard routes
- Expand QMD prompt completeness tests in executor
- Add QMD bootstrap and instruction completeness tests in triage
- Add QMD convenience function integration tests in memory-backend and project-memory
This commit is contained in:
Fusion
2026-04-15 23:09:02 -07:00
committed by gsxdsm
parent 738ff223aa
commit 37fdcc99a7
5 changed files with 189 additions and 0 deletions

View File

@@ -11924,6 +11924,19 @@ describe("PUT /api/settings - memoryBackendType validation", () => {
expect(store.updateSettings).toHaveBeenCalledWith(expect.objectContaining({ memoryBackendType: "custom-backend-v1" }));
});
it("accepts memoryBackendType as qmd", async () => {
(store.updateSettings as ReturnType<typeof vi.fn>).mockResolvedValueOnce({
memoryBackendType: "qmd",
});
const res = await REQUEST(buildApp(), "PUT", "/api/settings", JSON.stringify({ memoryBackendType: "qmd" }), {
"Content-Type": "application/json",
});
expect(res.status).toBe(200);
expect(store.updateSettings).toHaveBeenCalledWith(expect.objectContaining({ memoryBackendType: "qmd" }));
});
it("returns 400 when memoryBackendType is not string or null", async () => {
const res = await REQUEST(buildApp(), "PUT", "/api/settings", JSON.stringify({ memoryBackendType: 123 }), {
"Content-Type": "application/json",