Skip to content

Commit 41e3935

Browse files
Merge pull request #70 from contentstack/CL-2100
Add AGENTS.md file
2 parents 1125814 + a9ce937 commit 41e3935

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

AGENTS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## Testing instructions
2+
3+
- Follow the Arrange, Act, Assert structure when writing unit tests.
4+
- When writing unit tests, create individual unit tests that cover each logical branching in the code.
5+
- For the happy path, can we have a single unit test where in the all the top level if conditions are executed? Maybe this might help with reducing the number of total unit tests created and still give same test coverage.
6+
- For the tests for edge cases do not create separate describe blocks, keep the hierarchy flat.
7+
- For the tests for edge cases, do not skip assertions, its still worth adding all assertions similar to the happy paths tests.
8+

0 commit comments

Comments
 (0)