array.test-d.ts
This file
Path
test-d/stdio/array.test-d.ts
14 lines · 788 bytes · TypeScript
Last changed by
Split type files (#978)ehmickybefore adoption0bd0f0d
History of this fileTake it
Split type files (#978)ehmickybefore adoption0bd0f0d
lines 1–14why, one step back1import {expectError} from 'tsd';2import {execa, execaSync} from '../../index.js';34expectError(await execa('unicorns', {stdio: []}));5expectError(execaSync('unicorns', {stdio: []}));6expectError(await execa('unicorns', {stdio: ['pipe']}));7expectError(execaSync('unicorns', {stdio: ['pipe']}));8expectError(await execa('unicorns', {stdio: ['pipe', 'pipe']}));9expectError(execaSync('unicorns', {stdio: ['pipe', 'pipe']}));1011await execa('unicorns', {stdio: ['pipe', 'pipe', 'pipe', 'pipe', 'pipe', 'pipe']});12execaSync('unicorns', {stdio: ['pipe', 'pipe', 'pipe', 'pipe', 'pipe', 'pipe']});13expectError(await execa('unicorns', {stdio: ['pipe', 'pipe', 'pipe', 'pipe', 'pipe', 'unknown']}));14expectError(execaSync('unicorns', {stdio: ['pipe', 'pipe', 'pipe', 'pipe', 'pipe', 'unknown']}));