aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/cli/test.md11
-rw-r--r--docs/runtime/configuration.md7
2 files changed, 10 insertions, 8 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.
diff --git a/docs/runtime/configuration.md b/docs/runtime/configuration.md
index 8dc2bfe24..e1572c990 100644
--- a/docs/runtime/configuration.md
+++ b/docs/runtime/configuration.md
@@ -63,13 +63,6 @@ logLevel = "debug"
# publicDir = "public"
# external = ["jquery"]
-[macros]
-# Remap any import like this:
-# import {graphql} from 'react-relay';
-# To:
-# import {graphql} from 'macro:bun-macro-relay';
-react-relay = { "graphql" = "bun-macro-relay" }
-
[define]
# Replace any usage of "process.env.bagel" with the string `lox`.
# The values are parsed as JSON, except single-quoted strings are supported and `'undefined'` becomes `undefined` in JS.