Please provide details about:
Assuming:
- Node v23.1.0 (Linux)
"ava": "^6.2.0" and
- no configuration
- the following test file:
import ava from "ava"
ava("KO", test => {
test.throws(() => {
})
})
Running the test file (npm test) result in the following feedback:
✘ [fail]: KO
─
KO
foo.test.js:4
3: ava("KO", test => {
4: test.throws(() => {
5: })
Function returned:
undefined
› file://foo.test.js:4:8
─
1 test failed
- What you expected to happen
A more concise message explaining that the function should have thrown something.
Please provide details about:
Assuming:
"ava": "^6.2.0"andRunning the test file (
npm test) result in the following feedback:A more concise message explaining that the function should have thrown something.