When I name my test like this: (with a trailing space)
import test from 'ava';
test('name ',async t => {
t.is('bar', 'bar');
});
and I try to run it with ava -m "name " it doesn't find the test
× Couldn’t find any matching tests
To properly run it, you need to pass it without the space: ava -m "name". The plugin should remove the spaces from the test name.
Additionally, when there are two spaces in the test name:
test('foo bar',async t => {
t.is('bar', 'bar');
});
You need to call it with just one space: ava -m "foo bar". Calling it as-is, ava -m "foo bar", then it will fail too.