// Boot the MSW Node server for the duration of the test run. Tests can // override handlers per-suite via `mockServer.use(...)` and the after-each // reset cleans them up. import { afterAll, afterEach, beforeAll } from "vitest"; import { mockServer } from "./mocks/node"; beforeAll(() => { mockServer.start(); }); afterEach(() => { mockServer.resetHandlers(); }); afterAll(() => { mockServer.stop(); });