-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
I kinda expected this package to also create a test file. Compared to running npm i ava -D it only adds "test": "ava". Almost not worth it 😄
const test = require('ava');
const m = require('.');
test('foo', t => {
t.pass();
});
test('bar', async t => {
const bar = Promise.resolve('bar');
t.is(await bar, 'bar');
});
test('not undefined', t => {
t.not(typeof m, 'undefined');
});Also it should run ava right away, perhaps, but it might fail.
sindresorhus
Metadata
Metadata
Assignees
Labels
No labels