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 => {
	// ...
});