Skip to content

Commit bd5944d

Browse files
committed
Separate hooks into their own files
1 parent 5b9089d commit bd5944d

32 files changed

+1913
-1273
lines changed

AGENTS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@ Tests should be minimal, not conflict with each other, and not be race-prone.
1818
Good:
1919

2020
- `import { test } from "bun:test"`
21+
- File being tested: "file-name.tsx" -> test name: "file-name.test.tsx"
2122

2223
Bad:
2324

2425
- `import { it } from "bun:test"`
2526
- Any form of timing-based test (e.g. `setTimeout`, `setImmediate`, etc)
2627
- Deep nesting of tests
28+
- File being tested: "my-component.tsx" -> test name: "debug.test.tsx"
29+
30+
## Linting
31+
32+
Always run `bun typecheck` and `bun fmt` after changes to ensure that files are formatted and have no type errors.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"fmt": "prettier --write --cache .",
3030
"fmt:check": "prettier --check .",
3131
"lint": "echo 'No linter configured yet'",
32-
"test": "echo 'No tests configured yet'"
32+
"test": "bun test"
3333
},
3434
"keywords": [
3535
"github",

0 commit comments

Comments
 (0)