Translations: Français
Disallow the use of test.cb()
. We instead recommend using test()
with an async function or a function returning a promise.
const test = require('ava');
test.cb('some test', t => {
t.pass();
t.end();
});
const test = require('ava');
test('some test', async t => {
t.pass();
});