Skip to content
Myr

generator-output.js

This file

Path

test/transform/generator-output.js

262 lines · 32.3 KiB · JavaScript

Last changed by

TweaksSindre Sorhusbefore adoption698a1b8

History of this file

Take it

The walk stopped after 200 commits: lines older than 9f65b86 point at it.

TweaksSindre Sorhusbefore adoption698a1b8

lines 1–2why, one step back
1import assert from 'node:assert/strict';
2import test from 'node:test';

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 3–24why, one step back
3import getStream, {getStreamAsArray} from 'get-stream';
4import {execa, execaSync} from '../../index.js';5import {setFixtureDirectory} from '../helpers/fixtures-directory.js';6import {getStdio} from '../helpers/stdio.js';7import {foobarString, foobarUppercase, foobarObject} from '../helpers/input.js';8import {generatorsMap} from '../helpers/map.js';910setFixtureDirectory();1112const getOutputObjectMode = (objectMode, addNoopTransform, type, binary) => objectMode13 ? {14 generators: generatorsMap[type].addNoop(generatorsMap[type].outputObject(), addNoopTransform, objectMode, binary),15 output: [foobarObject],16 getStreamMethod: getStreamAsArray,17 }18 : {19 generators: generatorsMap[type].addNoop(generatorsMap[type].uppercaseBuffer(objectMode, true), addNoopTransform, objectMode, binary),20 output: foobarUppercase,21 getStreamMethod: getStream,22 };2324// eslint-disable-next-line max-params

TweaksSindre Sorhusbefore adoption698a1b8

line 25why, one step back
25const testGeneratorOutput = async (fdNumber, reject, useShortcutProperty, objectMode, addNoopTransform, type, execaMethod) => {

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 26–29why, one step back
26 const {generators, output} = getOutputObjectMode(objectMode, addNoopTransform, type);
27 const fixtureName = reject ? 'noop-fd.js' : 'noop-fail.js';28 const {stdout, stderr, stdio} = await execaMethod(fixtureName, [`${fdNumber}`, foobarString], {...getStdio(fdNumber, generators), reject});29 const result = useShortcutProperty ? [stdout, stderr][fdNumber - 1] : stdio[fdNumber];

TweaksSindre Sorhusbefore adoption698a1b8

line 30why, one step back
30 assert.deepEqual(result, output);

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 31–32why, one step back
31};
32

TweaksSindre Sorhusbefore adoption698a1b8

lines 33–192why, one step back
33test('Can use generators with result.stdio[1]', () => testGeneratorOutput(1, true, false, false, false, 'generator', execa));
34test('Can use generators with result.stdout', () => testGeneratorOutput(1, true, true, false, false, 'generator', execa));35test('Can use generators with result.stdio[2]', () => testGeneratorOutput(2, true, false, false, false, 'generator', execa));36test('Can use generators with result.stderr', () => testGeneratorOutput(2, true, true, false, false, 'generator', execa));37test('Can use generators with result.stdio[*] as output', () => testGeneratorOutput(3, true, false, false, false, 'generator', execa));38test('Can use generators with error.stdio[1]', () => testGeneratorOutput(1, false, false, false, false, 'generator', execa));39test('Can use generators with error.stdout', () => testGeneratorOutput(1, false, true, false, false, 'generator', execa));40test('Can use generators with error.stdio[2]', () => testGeneratorOutput(2, false, false, false, false, 'generator', execa));41test('Can use generators with error.stderr', () => testGeneratorOutput(2, false, true, false, false, 'generator', execa));42test('Can use generators with error.stdio[*] as output', () => testGeneratorOutput(3, false, false, false, false, 'generator', execa));43test('Can use generators with result.stdio[1], objectMode', () => testGeneratorOutput(1, true, false, true, false, 'generator', execa));44test('Can use generators with result.stdout, objectMode', () => testGeneratorOutput(1, true, true, true, false, 'generator', execa));45test('Can use generators with result.stdio[2], objectMode', () => testGeneratorOutput(2, true, false, true, false, 'generator', execa));46test('Can use generators with result.stderr, objectMode', () => testGeneratorOutput(2, true, true, true, false, 'generator', execa));47test('Can use generators with result.stdio[*] as output, objectMode', () => testGeneratorOutput(3, true, false, true, false, 'generator', execa));48test('Can use generators with error.stdio[1], objectMode', () => testGeneratorOutput(1, false, false, true, false, 'generator', execa));49test('Can use generators with error.stdout, objectMode', () => testGeneratorOutput(1, false, true, true, false, 'generator', execa));50test('Can use generators with error.stdio[2], objectMode', () => testGeneratorOutput(2, false, false, true, false, 'generator', execa));51test('Can use generators with error.stderr, objectMode', () => testGeneratorOutput(2, false, true, true, false, 'generator', execa));52test('Can use generators with error.stdio[*] as output, objectMode', () => testGeneratorOutput(3, false, false, true, false, 'generator', execa));53test('Can use generators with result.stdio[1], noop transform', () => testGeneratorOutput(1, true, false, false, true, 'generator', execa));54test('Can use generators with result.stdout, noop transform', () => testGeneratorOutput(1, true, true, false, true, 'generator', execa));55test('Can use generators with result.stdio[2], noop transform', () => testGeneratorOutput(2, true, false, false, true, 'generator', execa));56test('Can use generators with result.stderr, noop transform', () => testGeneratorOutput(2, true, true, false, true, 'generator', execa));57test('Can use generators with result.stdio[*] as output, noop transform', () => testGeneratorOutput(3, true, false, false, true, 'generator', execa));58test('Can use generators with error.stdio[1], noop transform', () => testGeneratorOutput(1, false, false, false, true, 'generator', execa));59test('Can use generators with error.stdout, noop transform', () => testGeneratorOutput(1, false, true, false, true, 'generator', execa));60test('Can use generators with error.stdio[2], noop transform', () => testGeneratorOutput(2, false, false, false, true, 'generator', execa));61test('Can use generators with error.stderr, noop transform', () => testGeneratorOutput(2, false, true, false, true, 'generator', execa));62test('Can use generators with error.stdio[*] as output, noop transform', () => testGeneratorOutput(3, false, false, false, true, 'generator', execa));63test('Can use generators with result.stdio[1], objectMode, noop transform', () => testGeneratorOutput(1, true, false, true, true, 'generator', execa));64test('Can use generators with result.stdout, objectMode, noop transform', () => testGeneratorOutput(1, true, true, true, true, 'generator', execa));65test('Can use generators with result.stdio[2], objectMode, noop transform', () => testGeneratorOutput(2, true, false, true, true, 'generator', execa));66test('Can use generators with result.stderr, objectMode, noop transform', () => testGeneratorOutput(2, true, true, true, true, 'generator', execa));67test('Can use generators with result.stdio[*] as output, objectMode, noop transform', () => testGeneratorOutput(3, true, false, true, true, 'generator', execa));68test('Can use generators with error.stdio[1], objectMode, noop transform', () => testGeneratorOutput(1, false, false, true, true, 'generator', execa));69test('Can use generators with error.stdout, objectMode, noop transform', () => testGeneratorOutput(1, false, true, true, true, 'generator', execa));70test('Can use generators with error.stdio[2], objectMode, noop transform', () => testGeneratorOutput(2, false, false, true, true, 'generator', execa));71test('Can use generators with error.stderr, objectMode, noop transform', () => testGeneratorOutput(2, false, true, true, true, 'generator', execa));72test('Can use generators with error.stdio[*] as output, objectMode, noop transform', () => testGeneratorOutput(3, false, false, true, true, 'generator', execa));73test('Can use generators with result.stdio[1], sync', () => testGeneratorOutput(1, true, false, false, false, 'generator', execaSync));74test('Can use generators with result.stdout, sync', () => testGeneratorOutput(1, true, true, false, false, 'generator', execaSync));75test('Can use generators with result.stdio[2], sync', () => testGeneratorOutput(2, true, false, false, false, 'generator', execaSync));76test('Can use generators with result.stderr, sync', () => testGeneratorOutput(2, true, true, false, false, 'generator', execaSync));77test('Can use generators with result.stdio[*] as output, sync', () => testGeneratorOutput(3, true, false, false, false, 'generator', execaSync));78test('Can use generators with error.stdio[1], sync', () => testGeneratorOutput(1, false, false, false, false, 'generator', execaSync));79test('Can use generators with error.stdout, sync', () => testGeneratorOutput(1, false, true, false, false, 'generator', execaSync));80test('Can use generators with error.stdio[2], sync', () => testGeneratorOutput(2, false, false, false, false, 'generator', execaSync));81test('Can use generators with error.stderr, sync', () => testGeneratorOutput(2, false, true, false, false, 'generator', execaSync));82test('Can use generators with error.stdio[*] as output, sync', () => testGeneratorOutput(3, false, false, false, false, 'generator', execaSync));83test('Can use generators with result.stdio[1], objectMode, sync', () => testGeneratorOutput(1, true, false, true, false, 'generator', execaSync));84test('Can use generators with result.stdout, objectMode, sync', () => testGeneratorOutput(1, true, true, true, false, 'generator', execaSync));85test('Can use generators with result.stdio[2], objectMode, sync', () => testGeneratorOutput(2, true, false, true, false, 'generator', execaSync));86test('Can use generators with result.stderr, objectMode, sync', () => testGeneratorOutput(2, true, true, true, false, 'generator', execaSync));87test('Can use generators with result.stdio[*] as output, objectMode, sync', () => testGeneratorOutput(3, true, false, true, false, 'generator', execaSync));88test('Can use generators with error.stdio[1], objectMode, sync', () => testGeneratorOutput(1, false, false, true, false, 'generator', execaSync));89test('Can use generators with error.stdout, objectMode, sync', () => testGeneratorOutput(1, false, true, true, false, 'generator', execaSync));90test('Can use generators with error.stdio[2], objectMode, sync', () => testGeneratorOutput(2, false, false, true, false, 'generator', execaSync));91test('Can use generators with error.stderr, objectMode, sync', () => testGeneratorOutput(2, false, true, true, false, 'generator', execaSync));92test('Can use generators with error.stdio[*] as output, objectMode, sync', () => testGeneratorOutput(3, false, false, true, false, 'generator', execaSync));93test('Can use generators with result.stdio[1], noop transform, sync', () => testGeneratorOutput(1, true, false, false, true, 'generator', execaSync));94test('Can use generators with result.stdout, noop transform, sync', () => testGeneratorOutput(1, true, true, false, true, 'generator', execaSync));95test('Can use generators with result.stdio[2], noop transform, sync', () => testGeneratorOutput(2, true, false, false, true, 'generator', execaSync));96test('Can use generators with result.stderr, noop transform, sync', () => testGeneratorOutput(2, true, true, false, true, 'generator', execaSync));97test('Can use generators with result.stdio[*] as output, noop transform, sync', () => testGeneratorOutput(3, true, false, false, true, 'generator', execaSync));98test('Can use generators with error.stdio[1], noop transform, sync', () => testGeneratorOutput(1, false, false, false, true, 'generator', execaSync));99test('Can use generators with error.stdout, noop transform, sync', () => testGeneratorOutput(1, false, true, false, true, 'generator', execaSync));100test('Can use generators with error.stdio[2], noop transform, sync', () => testGeneratorOutput(2, false, false, false, true, 'generator', execaSync));101test('Can use generators with error.stderr, noop transform, sync', () => testGeneratorOutput(2, false, true, false, true, 'generator', execaSync));102test('Can use generators with error.stdio[*] as output, noop transform, sync', () => testGeneratorOutput(3, false, false, false, true, 'generator', execaSync));103test('Can use generators with result.stdio[1], objectMode, noop transform, sync', () => testGeneratorOutput(1, true, false, true, true, 'generator', execaSync));104test('Can use generators with result.stdout, objectMode, noop transform, sync', () => testGeneratorOutput(1, true, true, true, true, 'generator', execaSync));105test('Can use generators with result.stdio[2], objectMode, noop transform, sync', () => testGeneratorOutput(2, true, false, true, true, 'generator', execaSync));106test('Can use generators with result.stderr, objectMode, noop transform, sync', () => testGeneratorOutput(2, true, true, true, true, 'generator', execaSync));107test('Can use generators with result.stdio[*] as output, objectMode, noop transform, sync', () => testGeneratorOutput(3, true, false, true, true, 'generator', execaSync));108test('Can use generators with error.stdio[1], objectMode, noop transform, sync', () => testGeneratorOutput(1, false, false, true, true, 'generator', execaSync));109test('Can use generators with error.stdout, objectMode, noop transform, sync', () => testGeneratorOutput(1, false, true, true, true, 'generator', execaSync));110test('Can use generators with error.stdio[2], objectMode, noop transform, sync', () => testGeneratorOutput(2, false, false, true, true, 'generator', execaSync));111test('Can use generators with error.stderr, objectMode, noop transform, sync', () => testGeneratorOutput(2, false, true, true, true, 'generator', execaSync));112test('Can use generators with error.stdio[*] as output, objectMode, noop transform, sync', () => testGeneratorOutput(3, false, false, true, true, 'generator', execaSync));113test('Can use duplexes with result.stdio[1]', () => testGeneratorOutput(1, true, false, false, false, 'duplex', execa));114test('Can use duplexes with result.stdout', () => testGeneratorOutput(1, true, true, false, false, 'duplex', execa));115test('Can use duplexes with result.stdio[2]', () => testGeneratorOutput(2, true, false, false, false, 'duplex', execa));116test('Can use duplexes with result.stderr', () => testGeneratorOutput(2, true, true, false, false, 'duplex', execa));117test('Can use duplexes with result.stdio[*] as output', () => testGeneratorOutput(3, true, false, false, false, 'duplex', execa));118test('Can use duplexes with error.stdio[1]', () => testGeneratorOutput(1, false, false, false, false, 'duplex', execa));119test('Can use duplexes with error.stdout', () => testGeneratorOutput(1, false, true, false, false, 'duplex', execa));120test('Can use duplexes with error.stdio[2]', () => testGeneratorOutput(2, false, false, false, false, 'duplex', execa));121test('Can use duplexes with error.stderr', () => testGeneratorOutput(2, false, true, false, false, 'duplex', execa));122test('Can use duplexes with error.stdio[*] as output', () => testGeneratorOutput(3, false, false, false, false, 'duplex', execa));123test('Can use duplexes with result.stdio[1], objectMode', () => testGeneratorOutput(1, true, false, true, false, 'duplex', execa));124test('Can use duplexes with result.stdout, objectMode', () => testGeneratorOutput(1, true, true, true, false, 'duplex', execa));125test('Can use duplexes with result.stdio[2], objectMode', () => testGeneratorOutput(2, true, false, true, false, 'duplex', execa));126test('Can use duplexes with result.stderr, objectMode', () => testGeneratorOutput(2, true, true, true, false, 'duplex', execa));127test('Can use duplexes with result.stdio[*] as output, objectMode', () => testGeneratorOutput(3, true, false, true, false, 'duplex', execa));128test('Can use duplexes with error.stdio[1], objectMode', () => testGeneratorOutput(1, false, false, true, false, 'duplex', execa));129test('Can use duplexes with error.stdout, objectMode', () => testGeneratorOutput(1, false, true, true, false, 'duplex', execa));130test('Can use duplexes with error.stdio[2], objectMode', () => testGeneratorOutput(2, false, false, true, false, 'duplex', execa));131test('Can use duplexes with error.stderr, objectMode', () => testGeneratorOutput(2, false, true, true, false, 'duplex', execa));132test('Can use duplexes with error.stdio[*] as output, objectMode', () => testGeneratorOutput(3, false, false, true, false, 'duplex', execa));133test('Can use duplexes with result.stdio[1], noop transform', () => testGeneratorOutput(1, true, false, false, true, 'duplex', execa));134test('Can use duplexes with result.stdout, noop transform', () => testGeneratorOutput(1, true, true, false, true, 'duplex', execa));135test('Can use duplexes with result.stdio[2], noop transform', () => testGeneratorOutput(2, true, false, false, true, 'duplex', execa));136test('Can use duplexes with result.stderr, noop transform', () => testGeneratorOutput(2, true, true, false, true, 'duplex', execa));137test('Can use duplexes with result.stdio[*] as output, noop transform', () => testGeneratorOutput(3, true, false, false, true, 'duplex', execa));138test('Can use duplexes with error.stdio[1], noop transform', () => testGeneratorOutput(1, false, false, false, true, 'duplex', execa));139test('Can use duplexes with error.stdout, noop transform', () => testGeneratorOutput(1, false, true, false, true, 'duplex', execa));140test('Can use duplexes with error.stdio[2], noop transform', () => testGeneratorOutput(2, false, false, false, true, 'duplex', execa));141test('Can use duplexes with error.stderr, noop transform', () => testGeneratorOutput(2, false, true, false, true, 'duplex', execa));142test('Can use duplexes with error.stdio[*] as output, noop transform', () => testGeneratorOutput(3, false, false, false, true, 'duplex', execa));143test('Can use duplexes with result.stdio[1], objectMode, noop transform', () => testGeneratorOutput(1, true, false, true, true, 'duplex', execa));144test('Can use duplexes with result.stdout, objectMode, noop transform', () => testGeneratorOutput(1, true, true, true, true, 'duplex', execa));145test('Can use duplexes with result.stdio[2], objectMode, noop transform', () => testGeneratorOutput(2, true, false, true, true, 'duplex', execa));146test('Can use duplexes with result.stderr, objectMode, noop transform', () => testGeneratorOutput(2, true, true, true, true, 'duplex', execa));147test('Can use duplexes with result.stdio[*] as output, objectMode, noop transform', () => testGeneratorOutput(3, true, false, true, true, 'duplex', execa));148test('Can use duplexes with error.stdio[1], objectMode, noop transform', () => testGeneratorOutput(1, false, false, true, true, 'duplex', execa));149test('Can use duplexes with error.stdout, objectMode, noop transform', () => testGeneratorOutput(1, false, true, true, true, 'duplex', execa));150test('Can use duplexes with error.stdio[2], objectMode, noop transform', () => testGeneratorOutput(2, false, false, true, true, 'duplex', execa));151test('Can use duplexes with error.stderr, objectMode, noop transform', () => testGeneratorOutput(2, false, true, true, true, 'duplex', execa));152test('Can use duplexes with error.stdio[*] as output, objectMode, noop transform', () => testGeneratorOutput(3, false, false, true, true, 'duplex', execa));153test('Can use webTransforms with result.stdio[1]', () => testGeneratorOutput(1, true, false, false, false, 'webTransform', execa));154test('Can use webTransforms with result.stdout', () => testGeneratorOutput(1, true, true, false, false, 'webTransform', execa));155test('Can use webTransforms with result.stdio[2]', () => testGeneratorOutput(2, true, false, false, false, 'webTransform', execa));156test('Can use webTransforms with result.stderr', () => testGeneratorOutput(2, true, true, false, false, 'webTransform', execa));157test('Can use webTransforms with result.stdio[*] as output', () => testGeneratorOutput(3, true, false, false, false, 'webTransform', execa));158test('Can use webTransforms with error.stdio[1]', () => testGeneratorOutput(1, false, false, false, false, 'webTransform', execa));159test('Can use webTransforms with error.stdout', () => testGeneratorOutput(1, false, true, false, false, 'webTransform', execa));160test('Can use webTransforms with error.stdio[2]', () => testGeneratorOutput(2, false, false, false, false, 'webTransform', execa));161test('Can use webTransforms with error.stderr', () => testGeneratorOutput(2, false, true, false, false, 'webTransform', execa));162test('Can use webTransforms with error.stdio[*] as output', () => testGeneratorOutput(3, false, false, false, false, 'webTransform', execa));163test('Can use webTransforms with result.stdio[1], objectMode', () => testGeneratorOutput(1, true, false, true, false, 'webTransform', execa));164test('Can use webTransforms with result.stdout, objectMode', () => testGeneratorOutput(1, true, true, true, false, 'webTransform', execa));165test('Can use webTransforms with result.stdio[2], objectMode', () => testGeneratorOutput(2, true, false, true, false, 'webTransform', execa));166test('Can use webTransforms with result.stderr, objectMode', () => testGeneratorOutput(2, true, true, true, false, 'webTransform', execa));167test('Can use webTransforms with result.stdio[*] as output, objectMode', () => testGeneratorOutput(3, true, false, true, false, 'webTransform', execa));168test('Can use webTransforms with error.stdio[1], objectMode', () => testGeneratorOutput(1, false, false, true, false, 'webTransform', execa));169test('Can use webTransforms with error.stdout, objectMode', () => testGeneratorOutput(1, false, true, true, false, 'webTransform', execa));170test('Can use webTransforms with error.stdio[2], objectMode', () => testGeneratorOutput(2, false, false, true, false, 'webTransform', execa));171test('Can use webTransforms with error.stderr, objectMode', () => testGeneratorOutput(2, false, true, true, false, 'webTransform', execa));172test('Can use webTransforms with error.stdio[*] as output, objectMode', () => testGeneratorOutput(3, false, false, true, false, 'webTransform', execa));173test('Can use webTransforms with result.stdio[1], noop transform', () => testGeneratorOutput(1, true, false, false, true, 'webTransform', execa));174test('Can use webTransforms with result.stdout, noop transform', () => testGeneratorOutput(1, true, true, false, true, 'webTransform', execa));175test('Can use webTransforms with result.stdio[2], noop transform', () => testGeneratorOutput(2, true, false, false, true, 'webTransform', execa));176test('Can use webTransforms with result.stderr, noop transform', () => testGeneratorOutput(2, true, true, false, true, 'webTransform', execa));177test('Can use webTransforms with result.stdio[*] as output, noop transform', () => testGeneratorOutput(3, true, false, false, true, 'webTransform', execa));178test('Can use webTransforms with error.stdio[1], noop transform', () => testGeneratorOutput(1, false, false, false, true, 'webTransform', execa));179test('Can use webTransforms with error.stdout, noop transform', () => testGeneratorOutput(1, false, true, false, true, 'webTransform', execa));180test('Can use webTransforms with error.stdio[2], noop transform', () => testGeneratorOutput(2, false, false, false, true, 'webTransform', execa));181test('Can use webTransforms with error.stderr, noop transform', () => testGeneratorOutput(2, false, true, false, true, 'webTransform', execa));182test('Can use webTransforms with error.stdio[*] as output, noop transform', () => testGeneratorOutput(3, false, false, false, true, 'webTransform', execa));183test('Can use webTransforms with result.stdio[1], objectMode, noop transform', () => testGeneratorOutput(1, true, false, true, true, 'webTransform', execa));184test('Can use webTransforms with result.stdout, objectMode, noop transform', () => testGeneratorOutput(1, true, true, true, true, 'webTransform', execa));185test('Can use webTransforms with result.stdio[2], objectMode, noop transform', () => testGeneratorOutput(2, true, false, true, true, 'webTransform', execa));186test('Can use webTransforms with result.stderr, objectMode, noop transform', () => testGeneratorOutput(2, true, true, true, true, 'webTransform', execa));187test('Can use webTransforms with result.stdio[*] as output, objectMode, noop transform', () => testGeneratorOutput(3, true, false, true, true, 'webTransform', execa));188test('Can use webTransforms with error.stdio[1], objectMode, noop transform', () => testGeneratorOutput(1, false, false, true, true, 'webTransform', execa));189test('Can use webTransforms with error.stdout, objectMode, noop transform', () => testGeneratorOutput(1, false, true, true, true, 'webTransform', execa));190test('Can use webTransforms with error.stdio[2], objectMode, noop transform', () => testGeneratorOutput(2, false, false, true, true, 'webTransform', execa));191test('Can use webTransforms with error.stderr, objectMode, noop transform', () => testGeneratorOutput(2, false, true, true, true, 'webTransform', execa));192test('Can use webTransforms with error.stdio[*] as output, objectMode, noop transform', () => testGeneratorOutput(3, false, false, true, true, 'webTransform', execa));

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 193–194why, one step back
193
194// eslint-disable-next-line max-params

TweaksSindre Sorhusbefore adoption698a1b8

line 195why, one step back
195const testGeneratorOutputPipe = async (fdNumber, useShortcutProperty, objectMode, addNoopTransform, type) => {

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 196–199why, one step back
196 const {generators, output, getStreamMethod} = getOutputObjectMode(objectMode, addNoopTransform, type, true);
197 const subprocess = execa('noop-fd.js', [`${fdNumber}`, foobarString], getStdio(fdNumber, generators));198 const stream = useShortcutProperty ? [subprocess.stdout, subprocess.stderr][fdNumber - 1] : subprocess.stdio[fdNumber];199 const [result] = await Promise.all([getStreamMethod(stream), subprocess]);

TweaksSindre Sorhusbefore adoption698a1b8

line 200why, one step back
200 assert.deepEqual(result, output);

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 201–202why, one step back
201};
202

TweaksSindre Sorhusbefore adoption698a1b8

lines 203–262why, one step back
203test('Can use generators with subprocess.stdio[1]', () => testGeneratorOutputPipe(1, false, false, false, 'generator'));
204test('Can use generators with subprocess.stdout', () => testGeneratorOutputPipe(1, true, false, false, 'generator'));205test('Can use generators with subprocess.stdio[2]', () => testGeneratorOutputPipe(2, false, false, false, 'generator'));206test('Can use generators with subprocess.stderr', () => testGeneratorOutputPipe(2, true, false, false, 'generator'));207test('Can use generators with subprocess.stdio[*] as output', () => testGeneratorOutputPipe(3, false, false, false, 'generator'));208test('Can use generators with subprocess.stdio[1], objectMode', () => testGeneratorOutputPipe(1, false, true, false, 'generator'));209test('Can use generators with subprocess.stdout, objectMode', () => testGeneratorOutputPipe(1, true, true, false, 'generator'));210test('Can use generators with subprocess.stdio[2], objectMode', () => testGeneratorOutputPipe(2, false, true, false, 'generator'));211test('Can use generators with subprocess.stderr, objectMode', () => testGeneratorOutputPipe(2, true, true, false, 'generator'));212test('Can use generators with subprocess.stdio[*] as output, objectMode', () => testGeneratorOutputPipe(3, false, true, false, 'generator'));213test('Can use generators with subprocess.stdio[1], noop transform', () => testGeneratorOutputPipe(1, false, false, true, 'generator'));214test('Can use generators with subprocess.stdout, noop transform', () => testGeneratorOutputPipe(1, true, false, true, 'generator'));215test('Can use generators with subprocess.stdio[2], noop transform', () => testGeneratorOutputPipe(2, false, false, true, 'generator'));216test('Can use generators with subprocess.stderr, noop transform', () => testGeneratorOutputPipe(2, true, false, true, 'generator'));217test('Can use generators with subprocess.stdio[*] as output, noop transform', () => testGeneratorOutputPipe(3, false, false, true, 'generator'));218test('Can use generators with subprocess.stdio[1], objectMode, noop transform', () => testGeneratorOutputPipe(1, false, true, true, 'generator'));219test('Can use generators with subprocess.stdout, objectMode, noop transform', () => testGeneratorOutputPipe(1, true, true, true, 'generator'));220test('Can use generators with subprocess.stdio[2], objectMode, noop transform', () => testGeneratorOutputPipe(2, false, true, true, 'generator'));221test('Can use generators with subprocess.stderr, objectMode, noop transform', () => testGeneratorOutputPipe(2, true, true, true, 'generator'));222test('Can use generators with subprocess.stdio[*] as output, objectMode, noop transform', () => testGeneratorOutputPipe(3, false, true, true, 'generator'));223test('Can use duplexes with subprocess.stdio[1]', () => testGeneratorOutputPipe(1, false, false, false, 'duplex'));224test('Can use duplexes with subprocess.stdout', () => testGeneratorOutputPipe(1, true, false, false, 'duplex'));225test('Can use duplexes with subprocess.stdio[2]', () => testGeneratorOutputPipe(2, false, false, false, 'duplex'));226test('Can use duplexes with subprocess.stderr', () => testGeneratorOutputPipe(2, true, false, false, 'duplex'));227test('Can use duplexes with subprocess.stdio[*] as output', () => testGeneratorOutputPipe(3, false, false, false, 'duplex'));228test('Can use duplexes with subprocess.stdio[1], objectMode', () => testGeneratorOutputPipe(1, false, true, false, 'duplex'));229test('Can use duplexes with subprocess.stdout, objectMode', () => testGeneratorOutputPipe(1, true, true, false, 'duplex'));230test('Can use duplexes with subprocess.stdio[2], objectMode', () => testGeneratorOutputPipe(2, false, true, false, 'duplex'));231test('Can use duplexes with subprocess.stderr, objectMode', () => testGeneratorOutputPipe(2, true, true, false, 'duplex'));232test('Can use duplexes with subprocess.stdio[*] as output, objectMode', () => testGeneratorOutputPipe(3, false, true, false, 'duplex'));233test('Can use duplexes with subprocess.stdio[1], noop transform', () => testGeneratorOutputPipe(1, false, false, true, 'duplex'));234test('Can use duplexes with subprocess.stdout, noop transform', () => testGeneratorOutputPipe(1, true, false, true, 'duplex'));235test('Can use duplexes with subprocess.stdio[2], noop transform', () => testGeneratorOutputPipe(2, false, false, true, 'duplex'));236test('Can use duplexes with subprocess.stderr, noop transform', () => testGeneratorOutputPipe(2, true, false, true, 'duplex'));237test('Can use duplexes with subprocess.stdio[*] as output, noop transform', () => testGeneratorOutputPipe(3, false, false, true, 'duplex'));238test('Can use duplexes with subprocess.stdio[1], objectMode, noop transform', () => testGeneratorOutputPipe(1, false, true, true, 'duplex'));239test('Can use duplexes with subprocess.stdout, objectMode, noop transform', () => testGeneratorOutputPipe(1, true, true, true, 'duplex'));240test('Can use duplexes with subprocess.stdio[2], objectMode, noop transform', () => testGeneratorOutputPipe(2, false, true, true, 'duplex'));241test('Can use duplexes with subprocess.stderr, objectMode, noop transform', () => testGeneratorOutputPipe(2, true, true, true, 'duplex'));242test('Can use duplexes with subprocess.stdio[*] as output, objectMode, noop transform', () => testGeneratorOutputPipe(3, false, true, true, 'duplex'));243test('Can use webTransforms with subprocess.stdio[1]', () => testGeneratorOutputPipe(1, false, false, false, 'webTransform'));244test('Can use webTransforms with subprocess.stdout', () => testGeneratorOutputPipe(1, true, false, false, 'webTransform'));245test('Can use webTransforms with subprocess.stdio[2]', () => testGeneratorOutputPipe(2, false, false, false, 'webTransform'));246test('Can use webTransforms with subprocess.stderr', () => testGeneratorOutputPipe(2, true, false, false, 'webTransform'));247test('Can use webTransforms with subprocess.stdio[*] as output', () => testGeneratorOutputPipe(3, false, false, false, 'webTransform'));248test('Can use webTransforms with subprocess.stdio[1], objectMode', () => testGeneratorOutputPipe(1, false, true, false, 'webTransform'));249test('Can use webTransforms with subprocess.stdout, objectMode', () => testGeneratorOutputPipe(1, true, true, false, 'webTransform'));250test('Can use webTransforms with subprocess.stdio[2], objectMode', () => testGeneratorOutputPipe(2, false, true, false, 'webTransform'));251test('Can use webTransforms with subprocess.stderr, objectMode', () => testGeneratorOutputPipe(2, true, true, false, 'webTransform'));252test('Can use webTransforms with subprocess.stdio[*] as output, objectMode', () => testGeneratorOutputPipe(3, false, true, false, 'webTransform'));253test('Can use webTransforms with subprocess.stdio[1], noop transform', () => testGeneratorOutputPipe(1, false, false, true, 'webTransform'));254test('Can use webTransforms with subprocess.stdout, noop transform', () => testGeneratorOutputPipe(1, true, false, true, 'webTransform'));255test('Can use webTransforms with subprocess.stdio[2], noop transform', () => testGeneratorOutputPipe(2, false, false, true, 'webTransform'));256test('Can use webTransforms with subprocess.stderr, noop transform', () => testGeneratorOutputPipe(2, true, false, true, 'webTransform'));257test('Can use webTransforms with subprocess.stdio[*] as output, noop transform', () => testGeneratorOutputPipe(3, false, false, true, 'webTransform'));258test('Can use webTransforms with subprocess.stdio[1], objectMode, noop transform', () => testGeneratorOutputPipe(1, false, true, true, 'webTransform'));259test('Can use webTransforms with subprocess.stdout, objectMode, noop transform', () => testGeneratorOutputPipe(1, true, true, true, 'webTransform'));260test('Can use webTransforms with subprocess.stdio[2], objectMode, noop transform', () => testGeneratorOutputPipe(2, false, true, true, 'webTransform'));261test('Can use webTransforms with subprocess.stderr, objectMode, noop transform', () => testGeneratorOutputPipe(2, true, true, true, 'webTransform'));262test('Can use webTransforms with subprocess.stdio[*] as output, objectMode, noop transform', () => testGeneratorOutputPipe(3, false, true, true, 'webTransform'));