update CLAUDE.md

This commit is contained in:
Jarred Sumner
2025-06-27 18:03:45 -07:00
parent 9081073ec4
commit 7839844abb
2 changed files with 10 additions and 0 deletions

View File

@@ -210,6 +210,14 @@ Built-in JavaScript modules use special syntax and are organized as:
Note: These are NOT ES modules. The preprocessor converts `$` to `@` (JSC's actual syntax) and handles the special functions. Note: These are NOT ES modules. The preprocessor converts `$` to `@` (JSC's actual syntax) and handles the special functions.
## CI
Bun uses BuildKite for CI. To get the status of a PR, you can use the following command:
```bash
bun ci
```
## Important Development Notes ## Important Development Notes
1. **Never use `bun test` or `bun <file>` directly** - always use `bun bd test` or `bun bd <command>`. `bun bd` compiles & runs the debug build. 1. **Never use `bun test` or `bun <file>` directly** - always use `bun bd test` or `bun bd <command>`. `bun bd` compiles & runs the debug build.

View File

@@ -18,6 +18,8 @@ Note that compiling Bun may take up to 2.5 minutes. It is slow!
Use `bun:test` with files that end in `*.test.ts`. Use `bun:test` with files that end in `*.test.ts`.
**Do not write flaky tests**. Unless explicitly asked, **never wait for time to pass in tests**. Always wait for the condition to be met instead of waiting for an arbitrary amount of time. **Never use hardcoded port numbers**. Always use `port: 0` to get a random port.
### Spawning processes ### Spawning processes
#### Spawning Bun in tests #### Spawning Bun in tests