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
12345678910import type {Readable} from 'node:stream';import {expectTypeOf} from 'nz';import {execa} from '../../index.js';
const allSubprocess = execa('unicorns', {all: true});expectTypeOf(allSubprocess.all).toBe<Readable>();
const noAllSubprocess = execa('unicorns');expectTypeOf(noAllSubprocess.all).toBe<undefined>();