* Test lockfile using npm 7.23 * Workflow updates * Update codecov action * Cache npm dependencies * Simplify checkout * Bump minimal Node.js versions These should allow us to add features over AVA 4's lifetime using newly available Node.js APIs. * Update dev dependencies * Update to TypeScript 4.4 and latest tsd * Upgrade XO and reformat * Update dependencies * Rebuild lockfile * Run XO with Node.js 16 It fails on older Node.js versions.
10 lines
170 B
JavaScript
10 lines
170 B
JavaScript
const test = require('../../entrypoints/main.cjs');
|
|
|
|
const getAnonymousFn = () => () => {
|
|
throw new Error();
|
|
};
|
|
|
|
test('test', t => {
|
|
getAnonymousFn()();
|
|
t.pass();
|
|
});
|