all.test-d.ts
This file
Path
test-d/subprocess/all.test-d.ts
9 lines · 316 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.
100% test coverage (#1018)ehmickybefore adoption9f65b86
line 1why, one step back1import type {Readable} from 'node:stream';Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
line 2why, one step back2import {expectTypeOf} from 'nz';100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 3–5why, one step back3import {execa} from '../../index.js';45const allSubprocess = execa('unicorns', {all: true});Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
line 6why, one step back6expectTypeOf(allSubprocess.all).toBe<Readable>();100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 7–8why, one step back78const noAllSubprocess = execa('unicorns');Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
line 9why, one step back9expectTypeOf(noAllSubprocess.all).toBe<undefined>();