Document test scripts in README and CLAUDE.md
- Add test:unit, test:cov, test:unit:cov to README scripts table - Add Running Tests section to CLAUDE.md recommending test:cov Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,12 @@
|
|||||||
# Claude Code Notes
|
# Claude Code Notes
|
||||||
|
|
||||||
|
## Running Tests
|
||||||
|
|
||||||
|
Use `bun run test:cov` to run all tests with coverage. This runs both unit tests and e2e tests that require a database connection.
|
||||||
|
|
||||||
|
- `bun run test:cov` - Run all tests with coverage (preferred)
|
||||||
|
- `bun run test:unit:cov` - Run only unit tests with coverage (no database required)
|
||||||
|
|
||||||
## Database Scripts
|
## Database Scripts
|
||||||
|
|
||||||
Use the wrapper scripts instead of running dbmate directly:
|
Use the wrapper scripts instead of running dbmate directly:
|
||||||
|
|||||||
@@ -113,7 +113,10 @@ bun run dev
|
|||||||
| `bun run typecheck` | Run TypeScript type checking |
|
| `bun run typecheck` | Run TypeScript type checking |
|
||||||
| `bun run lint` | Run Biome and ESLint |
|
| `bun run lint` | Run Biome and ESLint |
|
||||||
| `bun run lint:fix` | Fix linting issues |
|
| `bun run lint:fix` | Fix linting issues |
|
||||||
| `bun run test` | Run tests |
|
| `bun run test` | Run all tests (requires database) |
|
||||||
|
| `bun run test:unit` | Run unit tests only (no database required) |
|
||||||
|
| `bun run test:cov` | Run all tests with coverage report |
|
||||||
|
| `bun run test:unit:cov` | Run unit tests with coverage (no database) |
|
||||||
| `bun run db:codegen` | Generate database types |
|
| `bun run db:codegen` | Generate database types |
|
||||||
| `./scripts/db-dump` | Dump database schema (strips `\restrict` lines) |
|
| `./scripts/db-dump` | Dump database schema (strips `\restrict` lines) |
|
||||||
| `./scripts/db-migrate` | Run migrations (strips `\restrict` lines) |
|
| `./scripts/db-migrate` | Run migrations (strips `\restrict` lines) |
|
||||||
|
|||||||
Reference in New Issue
Block a user