zerobyte/app/test/setup-client.ts
Nico 611640b32b
fix: split display path and query base path (#714)
* fix: split display path and query base path

#709

* test(frontend): shared render utils

* fix(file-tree): add missing path segments

* chore: bump Bun version

* fix: select kind for synthetic folders
2026-03-29 12:30:35 +02:00

24 lines
554 B
TypeScript

import "./setup.ts";
import { GlobalRegistrator } from "@happy-dom/global-registrator";
import { afterAll, afterEach, beforeAll } from "bun:test";
import { client } from "~/client/api-client/client.gen";
import { server } from "~/test/msw/server";
GlobalRegistrator.register({ url: "http://localhost:3000" });
client.setConfig({
baseUrl: "http://localhost:3000",
credentials: "include",
});
beforeAll(() => {
server.listen({ onUnhandledRequest: "error" });
});
afterEach(() => {
server.resetHandlers();
});
afterAll(() => {
server.close();
});