Skip to content

Commit 41c96d4

Browse files
committed
Add more tests for FileSystemParser
And update agents.md for new instructions related to writing tests
1 parent 5a7a0a5 commit 41c96d4

File tree

2 files changed

+390
-31
lines changed

2 files changed

+390
-31
lines changed

AGENTS.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,13 @@
22
- Avoid semicolons unless it's absolutely necessary
33
- Always use block statements even if it could be a one-liner
44
- Always use curly braces {} for control structures (if, for, while, etc.), even if the body is a single statement
5+
6+
## Test Assertions Formatting
7+
- Assertion function call on one line (e.g., `t.ok(`, `t.equal(`, `t.notOk(`)
8+
- Actual/expected value on separate line
9+
- Message on its own line
10+
- Add blank line between consecutive assertions
11+
- Only use `t.plan()` for async or non-deterministic tests where assertions might be skipped; omit for sync tests
12+
13+
## Test File Operations
14+
- Use `Promise.all()` to parallelize independent async file operations (mkdir, writeFile, etc.) instead of awaiting them serially

0 commit comments

Comments
 (0)