Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 919 Bytes

no-todo-implementation.md

File metadata and controls

31 lines (20 loc) · 919 Bytes

Ensure test.todo() is not given an implementation function (ava/no-todo-implementation)

💼 This rule is enabled in the ✅ recommended config.

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.

Fail

const test = require('ava');

test.todo('title', t => {
	// ...
});

Pass

const test = require('ava');

test.todo('title');

test('title2', t => {
	// ...
});