test: move pages tests out of Next.js routes

This commit is contained in:
shamoon
2026-02-04 09:10:42 -08:00
parent 03a88c0f6b
commit bcdd4166a3
34 changed files with 47 additions and 46 deletions

View File

@@ -0,0 +1,16 @@
import { describe, expect, it } from "vitest";
import createMockRes from "test-utils/create-mock-res";
import handler from "pages/api/healthcheck";
describe("pages/api/healthcheck", () => {
it("returns 'up'", () => {
const req = {};
const res = createMockRes();
handler(req, res);
expect(res.body).toBe("up");
});
});