nested-big-array.js
This file
Path
test/fixtures/nested-big-array.js
8 lines · 371 bytes · JavaScript
Last changed by
Refactor tests (#934)ehmickybefore adoption52c4bde
History of this fileTake it
Print output with `verbose` option (#884)ehmickybefore adoption6fda30f
lines 1–7why, one step back1#!/usr/bin/env node2import process from 'node:process';3import {execa} from '../../index.js';4import {getOutputGenerator} from '../helpers/generator.js';56const bigArray = Array.from({length: 100}, (_, index) => index);7const [options, file, ...args] = process.argv.slice(2);Refactor tests (#934)ehmickybefore adoption52c4bde
line 8why, one step back8await execa(file, args, {stdout: getOutputGenerator(bigArray)(true), ...JSON.parse(options)});