Skip to content

Commit eba7179

Browse files
authored
Clarify snapshot handling instructions
Add guidelines for handling snapshots in tests.
1 parent 9ebdaea commit eba7179

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ export { MyComponentPropsSchema, type MyComponentProps };
108108
- Use `@testduet/given-when-then` package instead of xUnit style `describe`/`before`/`test`/`after`
109109
- Prefer integration/end-to-end testing than unit testing
110110
- Use as realistic setup as possible, such as using `msw` than mocking calls
111+
- MUST NOT modify/update any existing snapshots, let human review the test failures, they could be failing legitimately
112+
- MUST NOT use `-u` to update snapshots, delete the snapshots and rerun `npm test` instead
111113

112114
## PR instructions
113115

0 commit comments

Comments
 (0)