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
Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
line 1why, one step back1import {expectTypeOf, expectError} from 'nz';Add `gracefulCancel` option (#1109)ehmickybefore adoptiond8190e5
lines 2–3why, one step back2import {getCancelSignal, execa} from '../../index.js';3Move type tests from `tsd` to `nz`Sindre Sorhusbefore adoption2141147
line 4why, one step back4expectTypeOf(getCancelSignal()).toBe<Promise<AbortSignal>>();Add `gracefulCancel` option (#1109)ehmickybefore adoptiond8190e5
lines 5–8why, one step back56expectError(await getCancelSignal(''));78expectError(execa('test').getCancelSignal);