feat(ai-character): 리소스 관리 기반 정비

This commit is contained in:
Yu Sung
2026-08-01 01:30:24 +09:00
parent 55ba0df77a
commit a1cae336d9
73 changed files with 5162 additions and 816 deletions

View File

@@ -17,13 +17,14 @@ describe("startMockWorker", () => {
test("starts browser MSW with an error policy for unhandled requests", async () => {
// Given
vi.stubEnv("VITE_API_BASE_URL", "https://api.example.com");
const startOptions = { onUnhandledRequest: "error" };
const startOptions = { onUnhandledRequest: "error", quiet: true };
// When
await startMockWorker();
// Then
expect(setupWorkerMock).toHaveBeenCalledWith(expect.anything(), expect.anything(), expect.anything());
expect(setupWorkerMock).toHaveBeenCalled();
expect(setupWorkerMock.mock.calls[0]?.length).toBeGreaterThan(0);
expect(workerStart).toHaveBeenCalledWith(startOptions);
});
});