Skip to content

Testing ​

Running Tests ​

WARNING

Always use bun run test instead of bun test directly. The npm script ensures proper configuration.

bash
bun run test
bash
bun run test:api
bash
bun run test:e2e

Code Formatting ​

Format all source files with Prettier:

bash
bun run format

Development Mode ​

Run the development server with hot module reloading:

bash
bun run dev
bash
bun --hot index.ts

Passing CLI Flags ​

When running in development mode with CLI flags, use the double-dash separator:

bash
bun run index.ts -- --from-file plans.json

TIP

The -- separator tells Bun to pass subsequent arguments to your script rather than interpreting them as Bun options.