Skip to content
Myr

object-mode.test-d.ts

This file

Path

test-d/transform/object-mode.test-d.ts

224 lines · 15.6 KiB · TypeScript

Last changed by

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

History of this file

Take it

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

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 1why, one step back
1import {Duplex} from 'node:stream';

Fix type of `TransformStream` (#1044)ehmickybefore adoption11bbd9d

line 2why, one step back
2import {TransformStream} from 'node:stream/web';

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

line 3why, one step back
3import {expectTypeOf} from 'nz';

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 4–25why, one step back
4import {execa, type ExecaError} from '../../index.js';
56const duplexStream = new Duplex();7const duplex = {transform: duplexStream} as const;8const duplexObject = {transform: duplexStream as Duplex & {readonly readableObjectMode: true}} as const;9const duplexNotObject = {transform: duplexStream as Duplex & {readonly readableObjectMode: false}} as const;10const duplexObjectProperty = {transform: duplexStream, objectMode: true as const} as const;11const duplexNotObjectProperty = {transform: duplexStream, objectMode: false as const} as const;1213const webTransformInstance = new TransformStream();14const webTransform = {transform: webTransformInstance} as const;15const webTransformObject = {transform: webTransformInstance, objectMode: true as const} as const;16const webTransformNotObject = {transform: webTransformInstance, objectMode: false as const} as const;1718const objectGenerator = function * (line: unknown) {19 yield JSON.parse(line as string) as object;20};2122const objectFinal = function * () {23 yield {};24};25

Simplify types (#1041)ehmickybefore adoption9693cba

line 26why, one step back
26const objectTransformLinesStdoutResult = await execa('unicorns', {lines: true, stdout: {transform: objectGenerator, final: objectFinal, objectMode: true} as const});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 27–28why, one step back
27expectTypeOf(objectTransformLinesStdoutResult.stdout).toBe<unknown[]>();
28expectTypeOf(objectTransformLinesStdoutResult.stdio).toBe<[undefined, unknown[], string[]]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 29–30why, one step back
29
30const objectWebTransformStdoutResult = await execa('unicorns', {stdout: webTransformObject});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 31–32why, one step back
31expectTypeOf(objectWebTransformStdoutResult.stdout).toBe<unknown[]>();
32expectTypeOf(objectWebTransformStdoutResult.stdio).toBe<[undefined, unknown[], string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 33–34why, one step back
33
34const objectDuplexStdoutResult = await execa('unicorns', {stdout: duplexObject});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 35–36why, one step back
35expectTypeOf(objectDuplexStdoutResult.stdout).toBe<unknown[]>();
36expectTypeOf(objectDuplexStdoutResult.stdio).toBe<[undefined, unknown[], string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 37–38why, one step back
37
38const objectDuplexPropertyStdoutResult = await execa('unicorns', {stdout: duplexObjectProperty});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 39–40why, one step back
39expectTypeOf(objectDuplexPropertyStdoutResult.stdout).toBe<unknown[]>();
40expectTypeOf(objectDuplexPropertyStdoutResult.stdio).toBe<[undefined, unknown[], string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 41why, one step back
41

Simplify types (#1041)ehmickybefore adoption9693cba

line 42why, one step back
42const objectTransformStdoutResult = await execa('unicorns', {stdout: {transform: objectGenerator, final: objectFinal, objectMode: true} as const});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 43–44why, one step back
43expectTypeOf(objectTransformStdoutResult.stdout).toBe<unknown[]>();
44expectTypeOf(objectTransformStdoutResult.stdio).toBe<[undefined, unknown[], string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 45–46why, one step back
45
46const objectWebTransformStderrResult = await execa('unicorns', {stderr: webTransformObject});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 47–48why, one step back
47expectTypeOf(objectWebTransformStderrResult.stderr).toBe<unknown[]>();
48expectTypeOf(objectWebTransformStderrResult.stdio).toBe<[undefined, string, unknown[]]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 49–50why, one step back
49
50const objectDuplexStderrResult = await execa('unicorns', {stderr: duplexObject});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 51–52why, one step back
51expectTypeOf(objectDuplexStderrResult.stderr).toBe<unknown[]>();
52expectTypeOf(objectDuplexStderrResult.stdio).toBe<[undefined, string, unknown[]]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 53–54why, one step back
53
54const objectDuplexPropertyStderrResult = await execa('unicorns', {stderr: duplexObjectProperty});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 55–56why, one step back
55expectTypeOf(objectDuplexPropertyStderrResult.stderr).toBe<unknown[]>();
56expectTypeOf(objectDuplexPropertyStderrResult.stdio).toBe<[undefined, string, unknown[]]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 57why, one step back
57

Simplify types (#1041)ehmickybefore adoption9693cba

line 58why, one step back
58const objectTransformStderrResult = await execa('unicorns', {stderr: {transform: objectGenerator, final: objectFinal, objectMode: true} as const});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 59–60why, one step back
59expectTypeOf(objectTransformStderrResult.stderr).toBe<unknown[]>();
60expectTypeOf(objectTransformStderrResult.stdio).toBe<[undefined, string, unknown[]]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 61–62why, one step back
61
62const objectWebTransformStdioResult = await execa('unicorns', {stdio: ['pipe', 'pipe', webTransformObject]});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 63–64why, one step back
63expectTypeOf(objectWebTransformStdioResult.stderr).toBe<unknown[]>();
64expectTypeOf(objectWebTransformStdioResult.stdio).toBe<[undefined, string, unknown[]]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 65–66why, one step back
65
66const objectDuplexStdioResult = await execa('unicorns', {stdio: ['pipe', 'pipe', duplexObject]});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 67–68why, one step back
67expectTypeOf(objectDuplexStdioResult.stderr).toBe<unknown[]>();
68expectTypeOf(objectDuplexStdioResult.stdio).toBe<[undefined, string, unknown[]]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 69–70why, one step back
69
70const objectDuplexPropertyStdioResult = await execa('unicorns', {stdio: ['pipe', 'pipe', duplexObjectProperty]});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 71–72why, one step back
71expectTypeOf(objectDuplexPropertyStdioResult.stderr).toBe<unknown[]>();
72expectTypeOf(objectDuplexPropertyStdioResult.stdio).toBe<[undefined, string, unknown[]]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 73why, one step back
73

Simplify types (#1041)ehmickybefore adoption9693cba

line 74why, one step back
74const objectTransformStdioResult = await execa('unicorns', {stdio: ['pipe', 'pipe', {transform: objectGenerator, final: objectFinal, objectMode: true} as const]});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 75–76why, one step back
75expectTypeOf(objectTransformStdioResult.stderr).toBe<unknown[]>();
76expectTypeOf(objectTransformStdioResult.stdio).toBe<[undefined, string, unknown[]]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 77–78why, one step back
77
78const singleObjectWebTransformStdoutResult = await execa('unicorns', {stdout: [webTransformObject]});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 79–80why, one step back
79expectTypeOf(singleObjectWebTransformStdoutResult.stdout).toBe<unknown[]>();
80expectTypeOf(singleObjectWebTransformStdoutResult.stdio).toBe<[undefined, unknown[], string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 81–82why, one step back
81
82const singleObjectDuplexStdoutResult = await execa('unicorns', {stdout: [duplexObject]});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 83–84why, one step back
83expectTypeOf(singleObjectDuplexStdoutResult.stdout).toBe<unknown[]>();
84expectTypeOf(singleObjectDuplexStdoutResult.stdio).toBe<[undefined, unknown[], string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 85–86why, one step back
85
86const singleObjectDuplexPropertyStdoutResult = await execa('unicorns', {stdout: [duplexObjectProperty]});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 87–88why, one step back
87expectTypeOf(singleObjectDuplexPropertyStdoutResult.stdout).toBe<unknown[]>();
88expectTypeOf(singleObjectDuplexPropertyStdoutResult.stdio).toBe<[undefined, unknown[], string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 89why, one step back
89

Simplify types (#1041)ehmickybefore adoption9693cba

line 90why, one step back
90const singleObjectTransformStdoutResult = await execa('unicorns', {stdout: [{transform: objectGenerator, final: objectFinal, objectMode: true} as const]});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 91–92why, one step back
91expectTypeOf(singleObjectTransformStdoutResult.stdout).toBe<unknown[]>();
92expectTypeOf(singleObjectTransformStdoutResult.stdio).toBe<[undefined, unknown[], string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 93–94why, one step back
93
94const manyObjectWebTransformStdoutResult = await execa('unicorns', {stdout: [webTransformObject, webTransformObject]});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 95–96why, one step back
95expectTypeOf(manyObjectWebTransformStdoutResult.stdout).toBe<unknown[]>();
96expectTypeOf(manyObjectWebTransformStdoutResult.stdio).toBe<[undefined, unknown[], string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 97–98why, one step back
97
98const manyObjectDuplexStdoutResult = await execa('unicorns', {stdout: [duplexObject, duplexObject]});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 99–100why, one step back
99expectTypeOf(manyObjectDuplexStdoutResult.stdout).toBe<unknown[]>();
100expectTypeOf(manyObjectDuplexStdoutResult.stdio).toBe<[undefined, unknown[], string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 101–102why, one step back
101
102const manyObjectDuplexPropertyStdoutResult = await execa('unicorns', {stdout: [duplexObjectProperty, duplexObjectProperty]});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 103–104why, one step back
103expectTypeOf(manyObjectDuplexPropertyStdoutResult.stdout).toBe<unknown[]>();
104expectTypeOf(manyObjectDuplexPropertyStdoutResult.stdio).toBe<[undefined, unknown[], string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 105why, one step back
105

Simplify types (#1041)ehmickybefore adoption9693cba

line 106why, one step back
106const manyObjectTransformStdoutResult = await execa('unicorns', {stdout: [{transform: objectGenerator, final: objectFinal, objectMode: true} as const, {transform: objectGenerator, final: objectFinal, objectMode: true} as const]});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 107–108why, one step back
107expectTypeOf(manyObjectTransformStdoutResult.stdout).toBe<unknown[]>();
108expectTypeOf(manyObjectTransformStdoutResult.stdio).toBe<[undefined, unknown[], string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 109–110why, one step back
109
110const falseObjectWebTransformStdoutResult = await execa('unicorns', {stdout: webTransformNotObject});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 111–112why, one step back
111expectTypeOf(falseObjectWebTransformStdoutResult.stdout).toBe<string>();
112expectTypeOf(falseObjectWebTransformStdoutResult.stdio).toBe<[undefined, string, string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 113–114why, one step back
113
114const falseObjectDuplexStdoutResult = await execa('unicorns', {stdout: duplexNotObject});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 115–116why, one step back
115expectTypeOf(falseObjectDuplexStdoutResult.stdout).toBe<string>();
116expectTypeOf(falseObjectDuplexStdoutResult.stdio).toBe<[undefined, string, string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 117–118why, one step back
117
118const falseObjectDuplexPropertyStdoutResult = await execa('unicorns', {stdout: duplexNotObjectProperty});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 119–120why, one step back
119expectTypeOf(falseObjectDuplexPropertyStdoutResult.stdout).toBe<string>();
120expectTypeOf(falseObjectDuplexPropertyStdoutResult.stdio).toBe<[undefined, string, string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 121why, one step back
121

Simplify types (#1041)ehmickybefore adoption9693cba

line 122why, one step back
122const falseObjectTransformStdoutResult = await execa('unicorns', {stdout: {transform: objectGenerator, final: objectFinal, objectMode: false} as const});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 123–124why, one step back
123expectTypeOf(falseObjectTransformStdoutResult.stdout).toBe<string>();
124expectTypeOf(falseObjectTransformStdoutResult.stdio).toBe<[undefined, string, string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 125–126why, one step back
125
126const falseObjectWebTransformStderrResult = await execa('unicorns', {stderr: webTransformNotObject});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 127–128why, one step back
127expectTypeOf(falseObjectWebTransformStderrResult.stderr).toBe<string>();
128expectTypeOf(falseObjectWebTransformStderrResult.stdio).toBe<[undefined, string, string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 129–130why, one step back
129
130const falseObjectDuplexStderrResult = await execa('unicorns', {stderr: duplexNotObject});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 131–132why, one step back
131expectTypeOf(falseObjectDuplexStderrResult.stderr).toBe<string>();
132expectTypeOf(falseObjectDuplexStderrResult.stdio).toBe<[undefined, string, string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 133–134why, one step back
133
134const falseObjectDuplexPropertyStderrResult = await execa('unicorns', {stderr: duplexNotObjectProperty});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 135–136why, one step back
135expectTypeOf(falseObjectDuplexPropertyStderrResult.stderr).toBe<string>();
136expectTypeOf(falseObjectDuplexPropertyStderrResult.stdio).toBe<[undefined, string, string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 137why, one step back
137

Simplify types (#1041)ehmickybefore adoption9693cba

line 138why, one step back
138const falseObjectTransformStderrResult = await execa('unicorns', {stderr: {transform: objectGenerator, final: objectFinal, objectMode: false} as const});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 139–140why, one step back
139expectTypeOf(falseObjectTransformStderrResult.stderr).toBe<string>();
140expectTypeOf(falseObjectTransformStderrResult.stdio).toBe<[undefined, string, string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 141–142why, one step back
141
142const falseObjectWebTransformStdioResult = await execa('unicorns', {stdio: ['pipe', 'pipe', webTransformNotObject]});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 143–144why, one step back
143expectTypeOf(falseObjectWebTransformStdioResult.stderr).toBe<string>();
144expectTypeOf(falseObjectWebTransformStdioResult.stdio).toBe<[undefined, string, string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 145–146why, one step back
145
146const falseObjectDuplexStdioResult = await execa('unicorns', {stdio: ['pipe', 'pipe', duplexNotObject]});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 147–148why, one step back
147expectTypeOf(falseObjectDuplexStdioResult.stderr).toBe<string>();
148expectTypeOf(falseObjectDuplexStdioResult.stdio).toBe<[undefined, string, string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 149–150why, one step back
149
150const falseObjectDuplexPropertyStdioResult = await execa('unicorns', {stdio: ['pipe', 'pipe', duplexNotObjectProperty]});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 151–152why, one step back
151expectTypeOf(falseObjectDuplexPropertyStdioResult.stderr).toBe<string>();
152expectTypeOf(falseObjectDuplexPropertyStdioResult.stdio).toBe<[undefined, string, string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 153why, one step back
153

Simplify types (#1041)ehmickybefore adoption9693cba

line 154why, one step back
154const falseObjectTransformStdioResult = await execa('unicorns', {stdio: ['pipe', 'pipe', {transform: objectGenerator, final: objectFinal, objectMode: false} as const]});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 155–156why, one step back
155expectTypeOf(falseObjectTransformStdioResult.stderr).toBe<string>();
156expectTypeOf(falseObjectTransformStdioResult.stdio).toBe<[undefined, string, string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 157–158why, one step back
157
158const topObjectWebTransformStdoutResult = await execa('unicorns', {stdout: webTransformInstance});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 159–160why, one step back
159expectTypeOf(topObjectWebTransformStdoutResult.stdout).toBe<string>();
160expectTypeOf(topObjectWebTransformStdoutResult.stdio).toBe<[undefined, string, string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 161–162why, one step back
161
162const undefinedObjectWebTransformStdoutResult = await execa('unicorns', {stdout: webTransform});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 163–164why, one step back
163expectTypeOf(undefinedObjectWebTransformStdoutResult.stdout).toBe<string>();
164expectTypeOf(undefinedObjectWebTransformStdoutResult.stdio).toBe<[undefined, string, string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 165–166why, one step back
165
166const undefinedObjectDuplexStdoutResult = await execa('unicorns', {stdout: duplex});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 167–168why, one step back
167expectTypeOf(undefinedObjectDuplexStdoutResult.stdout).toBe<string | unknown[]>();
168expectTypeOf(undefinedObjectDuplexStdoutResult.stdio).toBe<[undefined, string | unknown[], string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 169–170why, one step back
169
170const undefinedObjectTransformStdoutResult = await execa('unicorns', {stdout: {transform: objectGenerator, final: objectFinal}});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 171–172why, one step back
171expectTypeOf(undefinedObjectTransformStdoutResult.stdout).toBe<string>();
172expectTypeOf(undefinedObjectTransformStdoutResult.stdio).toBe<[undefined, string, string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 173–174why, one step back
173
174const noObjectTransformStdoutResult = await execa('unicorns', {stdout: objectGenerator, final: objectFinal});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 175–176why, one step back
175expectTypeOf(noObjectTransformStdoutResult.stdout).toBe<string>();
176expectTypeOf(noObjectTransformStdoutResult.stdio).toBe<[undefined, string, string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 177why, one step back
177

Simplify types (#1041)ehmickybefore adoption9693cba

line 178why, one step back
178const trueTrueObjectTransformResult = await execa('unicorns', {stdout: {transform: objectGenerator, final: objectFinal, objectMode: true} as const, stderr: {transform: objectGenerator, final: objectFinal, objectMode: true} as const, all: true});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 179–182why, one step back
179expectTypeOf(trueTrueObjectTransformResult.stdout).toBe<unknown[]>();
180expectTypeOf(trueTrueObjectTransformResult.stderr).toBe<unknown[]>();181expectTypeOf(trueTrueObjectTransformResult.all).toBe<unknown[]>();182expectTypeOf(trueTrueObjectTransformResult.stdio).toBe<[undefined, unknown[], unknown[]]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 183why, one step back
183

Simplify types (#1041)ehmickybefore adoption9693cba

line 184why, one step back
184const trueFalseObjectTransformResult = await execa('unicorns', {stdout: {transform: objectGenerator, final: objectFinal, objectMode: true} as const, stderr: {transform: objectGenerator, final: objectFinal, objectMode: false} as const, all: true});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 185–188why, one step back
185expectTypeOf(trueFalseObjectTransformResult.stdout).toBe<unknown[]>();
186expectTypeOf(trueFalseObjectTransformResult.stderr).toBe<string>();187expectTypeOf(trueFalseObjectTransformResult.all).toBe<unknown[]>();188expectTypeOf(trueFalseObjectTransformResult.stdio).toBe<[undefined, unknown[], string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 189why, one step back
189

Simplify types (#1041)ehmickybefore adoption9693cba

line 190why, one step back
190const falseTrueObjectTransformResult = await execa('unicorns', {stdout: {transform: objectGenerator, final: objectFinal, objectMode: false} as const, stderr: {transform: objectGenerator, final: objectFinal, objectMode: true} as const, all: true});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 191–194why, one step back
191expectTypeOf(falseTrueObjectTransformResult.stdout).toBe<string>();
192expectTypeOf(falseTrueObjectTransformResult.stderr).toBe<unknown[]>();193expectTypeOf(falseTrueObjectTransformResult.all).toBe<unknown[]>();194expectTypeOf(falseTrueObjectTransformResult.stdio).toBe<[undefined, string, unknown[]]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 195why, one step back
195

Simplify types (#1041)ehmickybefore adoption9693cba

line 196why, one step back
196const falseFalseObjectTransformResult = await execa('unicorns', {stdout: {transform: objectGenerator, final: objectFinal, objectMode: false} as const, stderr: {transform: objectGenerator, final: objectFinal, objectMode: false} as const, all: true});

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 197–200why, one step back
197expectTypeOf(falseFalseObjectTransformResult.stdout).toBe<string>();
198expectTypeOf(falseFalseObjectTransformResult.stderr).toBe<string>();199expectTypeOf(falseFalseObjectTransformResult.all).toBe<string>();200expectTypeOf(falseFalseObjectTransformResult.stdio).toBe<[undefined, string, string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 201why, one step back
201

Simplify types (#1041)ehmickybefore adoption9693cba

line 202why, one step back
202const objectTransformStdoutError = new Error('.') as ExecaError<{stdout: {transform: typeof objectGenerator; final: typeof objectFinal; readonly objectMode: true}}>;

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 203–204why, one step back
203expectTypeOf(objectTransformStdoutError.stdout).toBe<unknown[]>();
204expectTypeOf(objectTransformStdoutError.stdio).toBe<[undefined, unknown[], string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 205why, one step back
205

Simplify types (#1041)ehmickybefore adoption9693cba

line 206why, one step back
206const objectTransformStderrError = new Error('.') as ExecaError<{stderr: {transform: typeof objectGenerator; final: typeof objectFinal; readonly objectMode: true}}>;

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 207–208why, one step back
207expectTypeOf(objectTransformStderrError.stderr).toBe<unknown[]>();
208expectTypeOf(objectTransformStderrError.stdio).toBe<[undefined, string, unknown[]]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 209why, one step back
209

Simplify types (#1041)ehmickybefore adoption9693cba

line 210why, one step back
210const objectTransformStdioError = new Error('.') as ExecaError<{stdio: ['pipe', 'pipe', {transform: typeof objectGenerator; final: typeof objectFinal; readonly objectMode: true}]}>;

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 211–212why, one step back
211expectTypeOf(objectTransformStdioError.stderr).toBe<unknown[]>();
212expectTypeOf(objectTransformStdioError.stdio).toBe<[undefined, string, unknown[]]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 213why, one step back
213

Simplify types (#1041)ehmickybefore adoption9693cba

line 214why, one step back
214const falseObjectTransformStdoutError = new Error('.') as ExecaError<{stdout: {transform: typeof objectGenerator; final: typeof objectFinal; readonly objectMode: false}}>;

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 215–216why, one step back
215expectTypeOf(falseObjectTransformStdoutError.stdout).toBe<string>();
216expectTypeOf(falseObjectTransformStdoutError.stdio).toBe<[undefined, string, string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 217why, one step back
217

Simplify types (#1041)ehmickybefore adoption9693cba

line 218why, one step back
218const falseObjectTransformStderrError = new Error('.') as ExecaError<{stderr: {transform: typeof objectGenerator; final: typeof objectFinal; readonly objectMode: false}}>;

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 219–220why, one step back
219expectTypeOf(falseObjectTransformStderrError.stderr).toBe<string>();
220expectTypeOf(falseObjectTransformStderrError.stdio).toBe<[undefined, string, string]>();

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 221why, one step back
221

Simplify types (#1041)ehmickybefore adoption9693cba

line 222why, one step back
222const falseObjectTransformStdioError = new Error('.') as ExecaError<{stdio: ['pipe', 'pipe', {transform: typeof objectGenerator; final: typeof objectFinal; readonly objectMode: false}]}>;

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

lines 223–224why, one step back
223expectTypeOf(falseObjectTransformStdioError.stderr).toBe<string>();
224expectTypeOf(falseObjectTransformStdioError.stdio).toBe<[undefined, string, string]>();