graceful.ts
This file
Path
test-d/ipc/graceful.ts
8 lines · 250 bytes · TypeScript
Last changed by
Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
History of this fileTake it
123456789import {expectTypeOf, expectError} from 'nz';import {getCancelSignal, execa} from '../../index.js';
expectTypeOf(getCancelSignal()).toBe<Promise<AbortSignal>>();
expectError(await getCancelSignal(''));
expectError(execa('test').getCancelSignal);