* 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.
11 lines
352 B
JavaScript
11 lines
352 B
JavaScript
import {test} from 'tap';
|
|
|
|
import normalizeNodeArguments from '../lib/node-arguments.js';
|
|
|
|
test('combines arguments', async t => {
|
|
t.same(
|
|
await normalizeNodeArguments(['--require setup.cjs'], '--throw-deprecation --zero-fill-buffers'),
|
|
[...process.execArgv, '--require setup.cjs', '--throw-deprecation', '--zero-fill-buffers'],
|
|
);
|
|
t.end();
|
|
});
|