array.test-d.ts
This file
Path
test-d/stdio/array.test-d.ts
14 lines · 787 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 {expectError} from 'nz';100% test coverage (#1018)ehmickybefore adoption9f65b86
lines 2–14why, one step back2import {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']}));