aboutsummaryrefslogtreecommitdiff
path: root/docs/cli
diff options
context:
space:
mode:
authorGravatar Colin McDonnell <colinmcd94@gmail.com> 2023-06-02 17:43:51 -0700
committerGravatar GitHub <noreply@github.com> 2023-06-02 17:43:51 -0700
commitc4f237572d87fea2de1a3cc307e4df176c48a769 (patch)
tree359bac8c7b660ee1f8515770c0f02c10b2fcdb84 /docs/cli
parente20e6957751dbc4a8ff84f25b86ca579eb8d000d (diff)
downloadbun-c4f237572d87fea2de1a3cc307e4df176c48a769.tar.gz
bun-c4f237572d87fea2de1a3cc307e4df176c48a769.tar.zst
bun-c4f237572d87fea2de1a3cc307e4df176c48a769.zip
Update macro/test docs (#3180)
* Add test and fix plugin type * Update docs and config pages
Diffstat (limited to 'docs/cli')
-rw-r--r--docs/cli/test.md11
1 files changed, 10 insertions, 1 deletions
diff --git a/docs/cli/test.md b/docs/cli/test.md
index e76f37cdc..74a241ef2 100644
--- a/docs/cli/test.md
+++ b/docs/cli/test.md
@@ -1,8 +1,9 @@
Bun ships with a fast built-in test runner. Tests are executed with the Bun runtime, and support the following features.
- TypeScript and JSX
-- Snapshot testing
- Lifecycle hooks
+- Snapshot testing
+- UI & DOM testing
- Watch mode with `--watch`
- Script pre-loading with `--preload`
@@ -68,6 +69,14 @@ See [Test > Lifecycle](/docs/test/lifecycle) for complete documentation.
Snapshots are supported by `bun test`. See [Test > Snapshots](/docs/test/snapshots) for complete documentation.
+## UI & DOM testing
+
+Bun is compatible with popular UI testing libraries:
+
+- [HappyDOM](https://github.com/capricorn86/happy-dom)
+- [DOM Testing Library](https://testing-library.com/docs/dom-testing-library/intro/)
+- [React Testing Library](https://testing-library.com/docs/react-testing-library/intro)
+
## Performance
Bun's test runner is fast.