<NME> test.js
<BEF> import test from 'ava';
import <%= camelModuleName %> from '.';

test('title', t => {
	t.throws(() => {
		<%= camelModuleName %>(123);
	}, {
		instanceOf: TypeError,
		message: 'Expected a string, got number',
	});

	t.is(<%= camelModuleName %>('unicorns'), 'unicorns & rainbows');
});

<MSG> Template: Require Node.js 12 and move to ESM

<DFF> @@ -1,5 +1,5 @@
 import test from 'ava';
-import <%= camelModuleName %> from '.';
+import <%= camelModuleName %> from './index.js';
 
 test('title', t => {
 	t.throws(() => {

Template: Require Node.js 12 and move to ESM