switch to bun
This commit is contained in:
28
README.md
28
README.md
@@ -1,2 +1,30 @@
|
||||
# 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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user