31 lines
634 B
Markdown
31 lines
634 B
Markdown
# nixi-api
|
|
|
|
## Scripts
|
|
|
|
- `bun dev` - Start development server with hot reload
|
|
- `bun run lint` - Run linter (oxlint)
|
|
- `bun run type` - Type check without emitting
|
|
- `bun run build` - Build production bundle
|
|
- `bun run tests` - Run tests with Bun test runner
|
|
|
|
## Testing
|
|
|
|
This project uses Bun's built-in test runner instead of Jest or Vitest. Tests are located in the `tests/` directory and use the pattern `*.test.ts`.
|
|
|
|
### Running tests
|
|
|
|
```bash
|
|
# Run all tests
|
|
bun test
|
|
|
|
# Run specific test file
|
|
bun test tests/AccountEntity.test.ts
|
|
|
|
# Run tests in watch mode
|
|
bun test --watch
|
|
|
|
# Run tests with coverage
|
|
bun test --coverage
|
|
```
|
|
|