π Require a URL in a comment above test.failing().
π« This rule is disabled in the β
recommended config.
test.failing() marks tests that are expected to fail due to a known bug. Without a link to the issue tracker, it's easy to forget why the test was marked as failing.
This rule requires a comment with a URL (http:// or https://) directly above the test.failing() call.
import test from 'ava';
// https://github.com/avajs/ava/issues/123
test.failing('foo', t => { // β
t.pass();
});
test.failing('bar', t => { // β
t.pass();
});
// TODO: fix this
test.failing('baz', t => { // β (comment has no URL)
t.pass();
});