ava/failing-test-url

February 8, 2026 ยท View on GitHub

๐Ÿ“ 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.

Examples

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();
});