ava/no-todo-implementation
February 8, 2026 ยท View on GitHub
๐ Disallow giving test.todo() an implementation function.
๐ผ This rule is enabled in the โ
recommended config.
๐ก This rule is manually fixable by editor suggestions.
Translations: Franรงais
test.todo() is intended for planning tests. It's not meant to be passed a function to implement the test, and if given one, AVA will throw an error. If you added an implementation, you probably meant to remove the .todo modifier.
Examples
import test from 'ava';
// โ
test.todo('title', t => {
// ...
});
// โ
test.todo('title');
test('title2', t => {
// ...
});