command.test-d.ts
This file
Path
test-d/methods/command.test-d.ts
27 lines · 1.0 KiB · TypeScript
Last changed by
Remove `execaCommand()` and `execaCommandSync()` (#1244)Sindre Sorhusbefore adoption3ced394
History of this fileTake it
The walk stopped after 200 commits: lines older than c8a6ed7 point at it.
Remove `execaCommand()` and `execaCommandSync()` (#1244)Sindre Sorhusbefore adoption3ced394
line 1why, one step back1import {expectType, expectError} from 'tsd';Improve documentation (#1003)ehmickybefore adoptionc8a6ed7
line 2why, one step back2import {Add `parseCommandString()` (#1054)ehmickybefore adoptionb9474c3
lines 3–7why, one step back3 execa,4 execaSync,5 $,6 execaNode,7 parseCommandString,Rename some types (#1009)ehmickybefore adoption2ef9186
lines 8–9why, one step back8 type Result,9 type SyncResult,Improve documentation (#1003)ehmickybefore adoptionc8a6ed7
lines 10–11why, one step back10} from '../../index.js';11Add `parseCommandString()` (#1054)ehmickybefore adoptionb9474c3
lines 12–27why, one step back12expectError(parseCommandString());13expectError(parseCommandString(true));14expectError(parseCommandString(['unicorns', 'arg']));1516expectType<string[]>(parseCommandString(''));17expectType<string[]>(parseCommandString('unicorns foo bar'));1819expectType<Result<{}>>(await execa`${parseCommandString('unicorns foo bar')}`);20expectType<SyncResult<{}>>(execaSync`${parseCommandString('unicorns foo bar')}`);21expectType<Result<{}>>(await $`${parseCommandString('unicorns foo bar')}`);22expectType<SyncResult<{}>>($.sync`${parseCommandString('unicorns foo bar')}`);23expectType<Result<{}>>(await execaNode`${parseCommandString('foo bar')}`);2425expectType<Result<{}>>(await execa`unicorns ${parseCommandString('foo bar')}`);26expectType<Result<{}>>(await execa('unicorns', parseCommandString('foo bar')));27expectType<Result<{}>>(await execa('unicorns', ['foo', ...parseCommandString('bar')]));