ava/test-tap/node-arguments.js
Mark Wubben e8a497696a
Update all the things
* 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.
2021-09-12 22:00:38 +02:00

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();
});