diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-12-07 17:51:34 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-12-07 17:51:34 +0900 |
| commit | 020803f7dfd094dcf5157943644a28d601629b35 (patch) | |
| tree | 9d89864d0f0a03f5b5f50504a767da4edf3efa2e /src/client/App.test.tsx | |
| parent | ef40cc0f3b1b3013046820b84e8482f1c6a29533 (diff) | |
| download | kioku-020803f7dfd094dcf5157943644a28d601629b35.tar.gz kioku-020803f7dfd094dcf5157943644a28d601629b35.tar.zst kioku-020803f7dfd094dcf5157943644a28d601629b35.zip | |
feat(client): add create deck modal with form validation
Add CreateDeckModal component that allows users to create new decks
with name and optional description fields. Integrates with HomePage
via a "Create Deck" button that opens the modal, and refreshes the
deck list after successful creation.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/client/App.test.tsx')
| -rw-r--r-- | src/client/App.test.tsx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/client/App.test.tsx b/src/client/App.test.tsx index bdc281a..c11eb88 100644 --- a/src/client/App.test.tsx +++ b/src/client/App.test.tsx @@ -37,9 +37,15 @@ vi.mock("./api/client", () => ({ })); // Helper to create mock responses compatible with Hono's ClientResponse -// biome-ignore lint/suspicious/noExplicitAny: Test helper needs flexible typing -function mockResponse(data: { ok: boolean; status?: number; json: () => Promise<any> }) { - return data as unknown as Awaited<ReturnType<typeof apiClient.rpc.api.decks.$get>>; +function mockResponse(data: { + ok: boolean; + status?: number; + // biome-ignore lint/suspicious/noExplicitAny: Test helper needs flexible typing + json: () => Promise<any>; +}) { + return data as unknown as Awaited< + ReturnType<typeof apiClient.rpc.api.decks.$get> + >; } function renderWithRouter(path: string) { |
