node/test/fixtures/test-runner/print-arguments.js
Aviv Keller bf11e5793b
test_runner: support custom arguments in run()
PR-URL: https://github.com/nodejs/node/pull/55126
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-09-28 13:52:04 +00:00

5 lines
161 B
JavaScript

const { test } = require('node:test');
test('process.argv is setup', (t) => {
t.assert.deepStrictEqual(process.argv.slice(2), ['--a-custom-argument']);
});