Skip to content

Commit 7801dfd

Browse files
ref(ai): Add note on writing tests without branching (#102509)
1 parent 5386931 commit 7801dfd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

AGENTS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,12 @@ class OrganizationDetailsTest(APITestCase):
290290
assert response.data["id"] == str(org.id)
291291
```
292292

293+
Notes:
294+
295+
- Tests should ALWAYS be procuderal with NO branching logic. It is very rare
296+
that you will need an if statement as part of a Frontend Jest test or backend
297+
pytest.
298+
293299
## Common Patterns
294300

295301
### Feature Flags

0 commit comments

Comments
 (0)