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
123456789#!/usr/bin/env nodeimport process from 'node:process';import {execa} from '../../index.js';import {getOutputGenerator} from '../helpers/generator.js';
const bigArray = Array.from({length: 100}, (_, index) => index);const [options, file, ...args] = process.argv.slice(2);await execa(file, args, {stdout: getOutputGenerator(bigArray)(true), ...JSON.parse(options)});