Commit 2b0d023
committed
docs(standards): add process.chdir() prohibition to code style
Added working directory rule to CLAUDE.md:
- Never use process.chdir() as it breaks tests, worker threads, and causes race conditions
- Always use { cwd } options and absolute paths instead
- Pass { cwd: absolutePath } to spawn/exec/fs operations
This rule prevents global state mutation anti-pattern that causes test failures in worker threads.1 parent f6793a5 commit 2b0d023
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
280 | 285 | | |
281 | 286 | | |
282 | 287 | | |
| |||
0 commit comments