pipe-undefined.test-d.ts
This file
Path
test-d/stdio/option/pipe-undefined.test-d.ts
29 lines · 953 bytes · 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.
Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
line 1why, one step back1import {expectTypeOf} from 'nz';100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 2–24why, one step back2import {3 execa,4 execaSync,5 type StdinOption,6 type StdinSyncOption,7 type StdoutStderrOption,8 type StdoutStderrSyncOption,9} from '../../../index.js';1011const pipeUndefined = ['pipe', undefined] as const;1213await execa('unicorns', {stdin: pipeUndefined});14execaSync('unicorns', {stdin: pipeUndefined});1516await execa('unicorns', {stdout: pipeUndefined});17execaSync('unicorns', {stdout: pipeUndefined});1819await execa('unicorns', {stderr: pipeUndefined});20execaSync('unicorns', {stderr: pipeUndefined});2122await execa('unicorns', {stdio: ['pipe', 'pipe', 'pipe', pipeUndefined]});23execaSync('unicorns', {stdio: ['pipe', 'pipe', 'pipe', pipeUndefined]});24Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 25–26why, one step back25expectTypeOf(pipeUndefined).toBeAssignableTo<StdinOption>();26expectTypeOf(pipeUndefined).toBeAssignableTo<StdinSyncOption>();100% test coverage (#1018)ehmickybefore adoption9f65b86
line 27why, one step back27Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
lines 28–29why, one step back28expectTypeOf(pipeUndefined).toBeAssignableTo<StdoutStderrOption>();29expectTypeOf(pipeUndefined).toBeAssignableTo<StdoutStderrSyncOption>();