Description
Description
The output of the watch mode is very confusing and more often than not unhelpful. I usually have to rerun the whole command since I'm never sure if the tests passed or not.
I was getting 2 failed tests. So I went ahead and fixed one but the other error was showing only a previously failed so I quit the command and rerun it since I didn't want to scroll to when it first failed (I think this could also be improved).
I got the error and fixed it, after which the output was a weird number of passed tests and 1 previous failure that was not rerun (even though there wasn't else failing to my knowledge).
I rerun the whole command again and finally got the correct number of passing tests with no failures.
I'm not sure if this is intended or if I'm just thinking about the numbers incorrectly.
Config
Copy the relevant section from package.json
:
{
"ava": {
"require": [
"esm",
"./setup-test-env.js"
]
}
}
setup-test-env.js
import browserEnv from 'browser-env';
browserEnv(['window', 'document']);
Environment
Node.js v10.5.0
linux 4.20.13-arch1-1-ARCH
ava 1.3.1
IssueHunt Summary
Sponsors (Total: $40.00)
issuehunt ($40.00)
Become a sponsor now!
Or submit a pull request to get the deposits!
Tips
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on IssueHunt to raise funds.