Testing
Running Tests
WARNING
Always use bun run test instead of bun test directly. The npm script ensures proper configuration.
bash
bun run testbash
bun run test:apibash
bun run test:e2eCode Formatting
Format all source files with Prettier:
bash
bun run formatDevelopment Mode
Run the development server with hot module reloading:
bash
bun run devbash
bun --hot index.tsPassing CLI Flags
When running in development mode with CLI flags, use the double-dash separator:
bash
bun run index.ts -- --from-file plans.jsonTIP
The -- separator tells Bun to pass subsequent arguments to your script rather than interpreting them as Bun options.