mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-18 09:49:50 +00:00
Update cheatsheets
This commit is contained in:
26
tldr/bun-test
Normal file
26
tldr/bun-test
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# bun test
|
||||
|
||||
> Run tests using Bun's built-in test runner.
|
||||
> It is a fast, Jest-compatible test runner that looks for `*.test.ts` (and similar) files.
|
||||
> More information: <https://bun.com/docs/cli/test>.
|
||||
|
||||
- Run all test files found in the project:
|
||||
|
||||
`bun test`
|
||||
|
||||
- Run a specific test file or directory:
|
||||
|
||||
`bun test {{path/to/file.test.ts}}`
|
||||
|
||||
- Run tests in "watch" mode (re-runs automatically on file changes):
|
||||
|
||||
`bun test --watch`
|
||||
|
||||
- Run tests and generate a code coverage report:
|
||||
|
||||
`bun test --coverage`
|
||||
Reference in New Issue
Block a user