test(crud): finalize MVP1 gate CRUD contract coverage
This commit is contained in:
@@ -7,6 +7,8 @@ MVP0 now includes a shared CRUD foundation package: `@cms/crud`.
|
||||
Current baseline:
|
||||
|
||||
- Shared service factory: `createCrudService`
|
||||
- Repository contract: `list`, `findById`, `create`, `update`, `delete`
|
||||
- Service surface for list/detail/editor flows: `list`, `getById`, `create`, `update`, `delete`
|
||||
- Shared validation error type: `CrudValidationError`
|
||||
- Shared not-found error type: `CrudNotFoundError`
|
||||
- Shared mutation audit hook contract: `CrudAuditHook`
|
||||
@@ -24,6 +26,11 @@ Current baseline:
|
||||
- `registerPostCrudAuditHook`
|
||||
|
||||
Validation for create/update is enforced by `@cms/content` schemas.
|
||||
Contract tests validate:
|
||||
|
||||
- repository list/detail behavior via CRUD service
|
||||
- validation and not-found errors
|
||||
- audit payload propagation (`actor`, `metadata`)
|
||||
|
||||
The admin dashboard currently includes a temporary posts CRUD sandbox to validate this flow through a real app UI.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user