mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
785 B
785 B
bun tests
IMPORTANT: use the bun bd command instead of the bun command. For example:
✅ Good
bun bd test internal/ban-words.test.ts
bun bd ./foo.ts
The bun bd command runs the DEBUG build. If you forget to run the debug build, your changes will not be reflected..
Run a file
To run a file, you can use the bun bd <file-path> command.
bun bd ./foo.ts
Run tests
To run a single test, you need to use the bun bd test <test-name> command.
bun bd test internal/ban-words.test.ts
You must ALWAYS make sure to pass a file path to the bun bd test <file-path> command. DO NOT try to run ALL the tests at once unless you're in a specific subdirectory.
Run a Node.js test
bun bd --silent node:test test-fs-link