Pass the
--coverage flag to bun test to print a coverage report after the test run.
The report lists the source files the tests executed, the percentage of functions and lines that ran, and the line ranges that never ran.
terminal
To enable coverage reporting by default, add the following to your
bunfig.toml:
bunfig.toml
See Code coverage.