You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/mocks.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,9 @@ Usage
12
12
Regeneration
13
13
- Delete a fixture file or run with `AUTO_MOCKER_FORCE=1` to re-generate.
14
14
15
+
Failure behavior (always strict)
16
+
- If a schema is missing or faker fails, the handler responds 500 and does not write a placeholder.
17
+
- Invalid fixtures (including empty `{}` when the schema defines properties) respond 500.
18
+
15
19
Types (optional)
16
20
- If you expose OpenAPI response types under `@api/types.gen`, set `USE_TYPES_FOR_FIXTURES = true` in `src/mocks/mocker.ts` to add a `satisfies` clause in generated fixtures.
0 commit comments