Skip to content
Myr

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 file

Take it

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

line 1why, one step back
1import {expectTypeOf, expectError} from 'nz';

Add `gracefulCancel` option (#1109)ehmickybefore adoptiond8190e5

lines 2–3why, one step back
2import {getCancelSignal, execa} from '../../index.js';
3

Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147

line 4why, one step back
4expectTypeOf(getCancelSignal()).toBe<Promise<AbortSignal>>();

Add `gracefulCancel` option (#1109)ehmickybefore adoptiond8190e5

lines 5–8why, one step back
5
6expectError(await getCancelSignal(''));78expectError(execa('test').getCancelSignal);