I'm using PhpStorm with a Laravel project and have set up a few basic JS tests using AVA.
They all work fine when I run them in the command line. e.g.:
example.text.js
import test from 'ava';
test('just a mockup', async (t) => {
let i = 1;
t.is(1,i);
});
If I run this in the terminal I get:
npm run ava src/example.test.js
ava [...]
ava "src/example.test.js"
1 passed
However if I setup a run configuration and run it via the run window of PhpStorm I get:
npm run ava src/example.test.js
ava [...]
ava "src/example.test.js"
⠋
⠙
⠹
⠸
⠼
⠴
⠦
⠧
⠧ just a mockup…1 passed ⠇ just a mockup…
1 passed 1 passed
Which is the entire text "animation".
It's not really a problem but it's just annoying when there's many tests since you have to plow through all that junk to get to the actual meaningful information.
Is there any way to get the run window to animate the text?
Update
In case it helps anyone, I'm moving the comment conversation here:
There are 2 separate bug reports/feature requests in webstorm
- WEB-19849 Support ANSI commands to show progress correctly to allow ANSI commands in general (which is how the animations are achieved)
- WEB-21788 Support ava test runner to allow the Webstom test interface for ava tests
In addition as a temporary solution for myself using the tap output (--tap) in my run configuration which looks a bit nicer.