Translations: Français
In AVA, you cannot nest tests, for example, create tests inside of other tests. Doing so will lead to odd behavior.
import test from 'ava';
test('foo', t => {
const result = foo();
t.true(result.foo);
test('bar', t => {
t.true(result.bar);
});
});
import test from 'ava';
test('foo', t => {
const result = foo();
t.true(result.foo);
});
test('bar', t => {
const result = foo();
t.true(result.bar);
});