Skip to content

Commit 26a2e5d

Browse files
Remove mentions of "callback mode" from docs
The notion of callback mode was removed in v4, the remaining references to it in the documentation may confuse users.
1 parent 91f5254 commit 26a2e5d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Diff for: docs/01-writing-tests.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Translations: [Français](https://github.com/avajs/ava-docs/blob/main/fr_FR/docs/01-writing-tests.md)
44

5-
Tests are run concurrently. You can specify synchronous and asynchronous tests. Tests are considered synchronous unless you return a promise, an [observable](https://github.com/zenparsing/zen-observable), or declare it as a callback test.
5+
Tests are run concurrently. You can specify synchronous and asynchronous tests. Tests are considered synchronous unless you return a promise or an [observable](https://github.com/zenparsing/zen-observable).
66

77
You must define all tests synchronously. They can't be defined inside `setTimeout`, `setImmediate`, etc.
88

@@ -73,8 +73,6 @@ test('promises the truth', async t => {
7373

7474
AVA comes with built-in support for [observables](https://github.com/zenparsing/es-observable). If you return an observable from a test, AVA will automatically consume it to completion before ending the test.
7575

76-
*You do not need to use "callback mode" or call `t.end()`.*
77-
7876
```js
7977
test('handles observables', t => {
8078
t.plan(3);

Diff for: docs/recipes/test-setup.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You could do all these things using plain setup functions, but there are tradeof
1616
|---|---
1717
| ⛔️   used for all tests| ✅   can change or skip depending on test
1818
| ⛔️   more overhead for beginners, "some magic"| ✅   easier for beginners, "no magic"
19-
| ✅   supports callback mode, built-in support for observables| ⛔️   must use promises for asynchronous behavior
19+
| ✅   built-in support for observables| ⛔️   must use promises for asynchronous behavior
2020
| ✅   failure has friendly output| ⛔️   errors are attributed to the test
2121
| ✅   corresponding `afterEach` and `afterEach.always` for cleanup| ⛔️   cannot easily clean up
2222

0 commit comments

Comments
 (0)