Skip to content

Also create minimal test.js file #14

@fregante

Description

@fregante

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions