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 fileTake it
The walk stopped after 200 commits: lines older than 9f65b86 point at it.
100% test coverage (#1018)ehmickybefore adoption9f65b86
line 1why, one step back1import {Duplex} from 'node:stream';Fix type of `TransformStream` (#1044)ehmickybefore adoption11bbd9d
line 2why, one step back2import {TransformStream} from 'node:stream/web';Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
line 3why, one step back3import {expectTypeOf} from 'nz';100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 4–25why, one step back4import {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};25Simplify types (#1041)ehmickybefore adoption9693cba
line 26why, one step back26const 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 back27expectTypeOf(objectTransformLinesStdoutResult.stdout).toBe<unknown[]>();28expectTypeOf(objectTransformLinesStdoutResult.stdio).toBe<[undefined, unknown[], string[]]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 29–30why, one step back2930const objectWebTransformStdoutResult = await execa('unicorns', {stdout: webTransformObject});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 31–32why, one step back31expectTypeOf(objectWebTransformStdoutResult.stdout).toBe<unknown[]>();32expectTypeOf(objectWebTransformStdoutResult.stdio).toBe<[undefined, unknown[], string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 33–34why, one step back3334const objectDuplexStdoutResult = await execa('unicorns', {stdout: duplexObject});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 35–36why, one step back35expectTypeOf(objectDuplexStdoutResult.stdout).toBe<unknown[]>();36expectTypeOf(objectDuplexStdoutResult.stdio).toBe<[undefined, unknown[], string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 37–38why, one step back3738const objectDuplexPropertyStdoutResult = await execa('unicorns', {stdout: duplexObjectProperty});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 39–40why, one step back39expectTypeOf(objectDuplexPropertyStdoutResult.stdout).toBe<unknown[]>();40expectTypeOf(objectDuplexPropertyStdoutResult.stdio).toBe<[undefined, unknown[], string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
line 41why, one step back41Simplify types (#1041)ehmickybefore adoption9693cba
line 42why, one step back42const 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 back43expectTypeOf(objectTransformStdoutResult.stdout).toBe<unknown[]>();44expectTypeOf(objectTransformStdoutResult.stdio).toBe<[undefined, unknown[], string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 45–46why, one step back4546const objectWebTransformStderrResult = await execa('unicorns', {stderr: webTransformObject});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 47–48why, one step back47expectTypeOf(objectWebTransformStderrResult.stderr).toBe<unknown[]>();48expectTypeOf(objectWebTransformStderrResult.stdio).toBe<[undefined, string, unknown[]]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 49–50why, one step back4950const objectDuplexStderrResult = await execa('unicorns', {stderr: duplexObject});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 51–52why, one step back51expectTypeOf(objectDuplexStderrResult.stderr).toBe<unknown[]>();52expectTypeOf(objectDuplexStderrResult.stdio).toBe<[undefined, string, unknown[]]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 53–54why, one step back5354const objectDuplexPropertyStderrResult = await execa('unicorns', {stderr: duplexObjectProperty});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 55–56why, one step back55expectTypeOf(objectDuplexPropertyStderrResult.stderr).toBe<unknown[]>();56expectTypeOf(objectDuplexPropertyStderrResult.stdio).toBe<[undefined, string, unknown[]]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
line 57why, one step back57Simplify types (#1041)ehmickybefore adoption9693cba
line 58why, one step back58const 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 back59expectTypeOf(objectTransformStderrResult.stderr).toBe<unknown[]>();60expectTypeOf(objectTransformStderrResult.stdio).toBe<[undefined, string, unknown[]]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 61–62why, one step back6162const objectWebTransformStdioResult = await execa('unicorns', {stdio: ['pipe', 'pipe', webTransformObject]});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 63–64why, one step back63expectTypeOf(objectWebTransformStdioResult.stderr).toBe<unknown[]>();64expectTypeOf(objectWebTransformStdioResult.stdio).toBe<[undefined, string, unknown[]]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 65–66why, one step back6566const objectDuplexStdioResult = await execa('unicorns', {stdio: ['pipe', 'pipe', duplexObject]});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 67–68why, one step back67expectTypeOf(objectDuplexStdioResult.stderr).toBe<unknown[]>();68expectTypeOf(objectDuplexStdioResult.stdio).toBe<[undefined, string, unknown[]]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 69–70why, one step back6970const objectDuplexPropertyStdioResult = await execa('unicorns', {stdio: ['pipe', 'pipe', duplexObjectProperty]});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 71–72why, one step back71expectTypeOf(objectDuplexPropertyStdioResult.stderr).toBe<unknown[]>();72expectTypeOf(objectDuplexPropertyStdioResult.stdio).toBe<[undefined, string, unknown[]]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
line 73why, one step back73Simplify types (#1041)ehmickybefore adoption9693cba
line 74why, one step back74const 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 back75expectTypeOf(objectTransformStdioResult.stderr).toBe<unknown[]>();76expectTypeOf(objectTransformStdioResult.stdio).toBe<[undefined, string, unknown[]]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 77–78why, one step back7778const singleObjectWebTransformStdoutResult = await execa('unicorns', {stdout: [webTransformObject]});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 79–80why, one step back79expectTypeOf(singleObjectWebTransformStdoutResult.stdout).toBe<unknown[]>();80expectTypeOf(singleObjectWebTransformStdoutResult.stdio).toBe<[undefined, unknown[], string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 81–82why, one step back8182const singleObjectDuplexStdoutResult = await execa('unicorns', {stdout: [duplexObject]});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 83–84why, one step back83expectTypeOf(singleObjectDuplexStdoutResult.stdout).toBe<unknown[]>();84expectTypeOf(singleObjectDuplexStdoutResult.stdio).toBe<[undefined, unknown[], string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 85–86why, one step back8586const singleObjectDuplexPropertyStdoutResult = await execa('unicorns', {stdout: [duplexObjectProperty]});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 87–88why, one step back87expectTypeOf(singleObjectDuplexPropertyStdoutResult.stdout).toBe<unknown[]>();88expectTypeOf(singleObjectDuplexPropertyStdoutResult.stdio).toBe<[undefined, unknown[], string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
line 89why, one step back89Simplify types (#1041)ehmickybefore adoption9693cba
line 90why, one step back90const 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 back91expectTypeOf(singleObjectTransformStdoutResult.stdout).toBe<unknown[]>();92expectTypeOf(singleObjectTransformStdoutResult.stdio).toBe<[undefined, unknown[], string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 93–94why, one step back9394const manyObjectWebTransformStdoutResult = await execa('unicorns', {stdout: [webTransformObject, webTransformObject]});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 95–96why, one step back95expectTypeOf(manyObjectWebTransformStdoutResult.stdout).toBe<unknown[]>();96expectTypeOf(manyObjectWebTransformStdoutResult.stdio).toBe<[undefined, unknown[], string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 97–98why, one step back9798const manyObjectDuplexStdoutResult = await execa('unicorns', {stdout: [duplexObject, duplexObject]});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 99–100why, one step back99expectTypeOf(manyObjectDuplexStdoutResult.stdout).toBe<unknown[]>();100expectTypeOf(manyObjectDuplexStdoutResult.stdio).toBe<[undefined, unknown[], string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 101–102why, one step back101102const manyObjectDuplexPropertyStdoutResult = await execa('unicorns', {stdout: [duplexObjectProperty, duplexObjectProperty]});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 103–104why, one step back103expectTypeOf(manyObjectDuplexPropertyStdoutResult.stdout).toBe<unknown[]>();104expectTypeOf(manyObjectDuplexPropertyStdoutResult.stdio).toBe<[undefined, unknown[], string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
line 105why, one step back105Simplify types (#1041)ehmickybefore adoption9693cba
line 106why, one step back106const 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 back107expectTypeOf(manyObjectTransformStdoutResult.stdout).toBe<unknown[]>();108expectTypeOf(manyObjectTransformStdoutResult.stdio).toBe<[undefined, unknown[], string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 109–110why, one step back109110const falseObjectWebTransformStdoutResult = await execa('unicorns', {stdout: webTransformNotObject});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 111–112why, one step back111expectTypeOf(falseObjectWebTransformStdoutResult.stdout).toBe<string>();112expectTypeOf(falseObjectWebTransformStdoutResult.stdio).toBe<[undefined, string, string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 113–114why, one step back113114const falseObjectDuplexStdoutResult = await execa('unicorns', {stdout: duplexNotObject});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 115–116why, one step back115expectTypeOf(falseObjectDuplexStdoutResult.stdout).toBe<string>();116expectTypeOf(falseObjectDuplexStdoutResult.stdio).toBe<[undefined, string, string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 117–118why, one step back117118const falseObjectDuplexPropertyStdoutResult = await execa('unicorns', {stdout: duplexNotObjectProperty});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 119–120why, one step back119expectTypeOf(falseObjectDuplexPropertyStdoutResult.stdout).toBe<string>();120expectTypeOf(falseObjectDuplexPropertyStdoutResult.stdio).toBe<[undefined, string, string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
line 121why, one step back121Simplify types (#1041)ehmickybefore adoption9693cba
line 122why, one step back122const 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 back123expectTypeOf(falseObjectTransformStdoutResult.stdout).toBe<string>();124expectTypeOf(falseObjectTransformStdoutResult.stdio).toBe<[undefined, string, string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 125–126why, one step back125126const falseObjectWebTransformStderrResult = await execa('unicorns', {stderr: webTransformNotObject});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 127–128why, one step back127expectTypeOf(falseObjectWebTransformStderrResult.stderr).toBe<string>();128expectTypeOf(falseObjectWebTransformStderrResult.stdio).toBe<[undefined, string, string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 129–130why, one step back129130const falseObjectDuplexStderrResult = await execa('unicorns', {stderr: duplexNotObject});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 131–132why, one step back131expectTypeOf(falseObjectDuplexStderrResult.stderr).toBe<string>();132expectTypeOf(falseObjectDuplexStderrResult.stdio).toBe<[undefined, string, string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 133–134why, one step back133134const falseObjectDuplexPropertyStderrResult = await execa('unicorns', {stderr: duplexNotObjectProperty});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 135–136why, one step back135expectTypeOf(falseObjectDuplexPropertyStderrResult.stderr).toBe<string>();136expectTypeOf(falseObjectDuplexPropertyStderrResult.stdio).toBe<[undefined, string, string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
line 137why, one step back137Simplify types (#1041)ehmickybefore adoption9693cba
line 138why, one step back138const 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 back139expectTypeOf(falseObjectTransformStderrResult.stderr).toBe<string>();140expectTypeOf(falseObjectTransformStderrResult.stdio).toBe<[undefined, string, string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 141–142why, one step back141142const falseObjectWebTransformStdioResult = await execa('unicorns', {stdio: ['pipe', 'pipe', webTransformNotObject]});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 143–144why, one step back143expectTypeOf(falseObjectWebTransformStdioResult.stderr).toBe<string>();144expectTypeOf(falseObjectWebTransformStdioResult.stdio).toBe<[undefined, string, string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 145–146why, one step back145146const falseObjectDuplexStdioResult = await execa('unicorns', {stdio: ['pipe', 'pipe', duplexNotObject]});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 147–148why, one step back147expectTypeOf(falseObjectDuplexStdioResult.stderr).toBe<string>();148expectTypeOf(falseObjectDuplexStdioResult.stdio).toBe<[undefined, string, string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 149–150why, one step back149150const falseObjectDuplexPropertyStdioResult = await execa('unicorns', {stdio: ['pipe', 'pipe', duplexNotObjectProperty]});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 151–152why, one step back151expectTypeOf(falseObjectDuplexPropertyStdioResult.stderr).toBe<string>();152expectTypeOf(falseObjectDuplexPropertyStdioResult.stdio).toBe<[undefined, string, string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
line 153why, one step back153Simplify types (#1041)ehmickybefore adoption9693cba
line 154why, one step back154const 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 back155expectTypeOf(falseObjectTransformStdioResult.stderr).toBe<string>();156expectTypeOf(falseObjectTransformStdioResult.stdio).toBe<[undefined, string, string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 157–158why, one step back157158const topObjectWebTransformStdoutResult = await execa('unicorns', {stdout: webTransformInstance});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 159–160why, one step back159expectTypeOf(topObjectWebTransformStdoutResult.stdout).toBe<string>();160expectTypeOf(topObjectWebTransformStdoutResult.stdio).toBe<[undefined, string, string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 161–162why, one step back161162const undefinedObjectWebTransformStdoutResult = await execa('unicorns', {stdout: webTransform});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 163–164why, one step back163expectTypeOf(undefinedObjectWebTransformStdoutResult.stdout).toBe<string>();164expectTypeOf(undefinedObjectWebTransformStdoutResult.stdio).toBe<[undefined, string, string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 165–166why, one step back165166const undefinedObjectDuplexStdoutResult = await execa('unicorns', {stdout: duplex});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 167–168why, one step back167expectTypeOf(undefinedObjectDuplexStdoutResult.stdout).toBe<string | unknown[]>();168expectTypeOf(undefinedObjectDuplexStdoutResult.stdio).toBe<[undefined, string | unknown[], string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 169–170why, one step back169170const undefinedObjectTransformStdoutResult = await execa('unicorns', {stdout: {transform: objectGenerator, final: objectFinal}});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 171–172why, one step back171expectTypeOf(undefinedObjectTransformStdoutResult.stdout).toBe<string>();172expectTypeOf(undefinedObjectTransformStdoutResult.stdio).toBe<[undefined, string, string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 173–174why, one step back173174const noObjectTransformStdoutResult = await execa('unicorns', {stdout: objectGenerator, final: objectFinal});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 175–176why, one step back175expectTypeOf(noObjectTransformStdoutResult.stdout).toBe<string>();176expectTypeOf(noObjectTransformStdoutResult.stdio).toBe<[undefined, string, string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
line 177why, one step back177Simplify types (#1041)ehmickybefore adoption9693cba
line 178why, one step back178const 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 back179expectTypeOf(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 back183Simplify types (#1041)ehmickybefore adoption9693cba
line 184why, one step back184const 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 back185expectTypeOf(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 back189Simplify types (#1041)ehmickybefore adoption9693cba
line 190why, one step back190const 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 back191expectTypeOf(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 back195Simplify types (#1041)ehmickybefore adoption9693cba
line 196why, one step back196const 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 back197expectTypeOf(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 back201Simplify types (#1041)ehmickybefore adoption9693cba
line 202why, one step back202const 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 back203expectTypeOf(objectTransformStdoutError.stdout).toBe<unknown[]>();204expectTypeOf(objectTransformStdoutError.stdio).toBe<[undefined, unknown[], string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
line 205why, one step back205Simplify types (#1041)ehmickybefore adoption9693cba
line 206why, one step back206const 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 back207expectTypeOf(objectTransformStderrError.stderr).toBe<unknown[]>();208expectTypeOf(objectTransformStderrError.stdio).toBe<[undefined, string, unknown[]]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
line 209why, one step back209Simplify types (#1041)ehmickybefore adoption9693cba
line 210why, one step back210const 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 back211expectTypeOf(objectTransformStdioError.stderr).toBe<unknown[]>();212expectTypeOf(objectTransformStdioError.stdio).toBe<[undefined, string, unknown[]]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
line 213why, one step back213Simplify types (#1041)ehmickybefore adoption9693cba
line 214why, one step back214const 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 back215expectTypeOf(falseObjectTransformStdoutError.stdout).toBe<string>();216expectTypeOf(falseObjectTransformStdoutError.stdio).toBe<[undefined, string, string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
line 217why, one step back217Simplify types (#1041)ehmickybefore adoption9693cba
line 218why, one step back218const 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 back219expectTypeOf(falseObjectTransformStderrError.stderr).toBe<string>();220expectTypeOf(falseObjectTransformStderrError.stdio).toBe<[undefined, string, string]>();100% test coverage (#1018)ehmickybefore adoption9f65b86
line 221why, one step back221Simplify types (#1041)ehmickybefore adoption9693cba
line 222why, one step back222const 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 back223expectTypeOf(falseObjectTransformStdioError.stderr).toBe<string>();224expectTypeOf(falseObjectTransformStdioError.stdio).toBe<[undefined, string, string]>();