test(web): MSW harness with typed handlers, fixtures, and client tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
import type { components } from "../api/schema";
|
||||
|
||||
export type AdminObjectView = components["schemas"]["AdminObjectView"];
|
||||
export type AdminObjectPage = components["schemas"]["AdminObjectPage"];
|
||||
|
||||
export const amphora: AdminObjectView = {
|
||||
id: "11111111-1111-1111-1111-111111111111",
|
||||
object_number: "LM-0042",
|
||||
object_name: "Amphora",
|
||||
number_of_objects: 1,
|
||||
brief_description: "Storage jar",
|
||||
current_location: "Vault 3",
|
||||
current_owner: null,
|
||||
recorder: null,
|
||||
recording_date: null,
|
||||
visibility: "public",
|
||||
fields: {},
|
||||
};
|
||||
|
||||
export const fibula: AdminObjectView = {
|
||||
...amphora,
|
||||
id: "22222222-2222-2222-2222-222222222222",
|
||||
object_number: "LM-0043",
|
||||
object_name: "Bronze fibula",
|
||||
visibility: "internal",
|
||||
fields: {},
|
||||
};
|
||||
|
||||
export const objectsPage: AdminObjectPage = {
|
||||
items: [amphora, fibula],
|
||||
total: 2,
|
||||
limit: 50,
|
||||
offset: 0,
|
||||
};
|
||||
Reference in New Issue
Block a user