* 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
24 lines
554 B
TypeScript
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();
|
|
});
|