ipc-send-cancel-shape.js
This file
Path
test/fixtures/ipc-send-cancel-shape.js
7 lines · 356 bytes · JavaScript
Last changed by
Harden some thingsSindre Sorhusbefore adoption4a0a121
History of this fileTake it
12345678#!/usr/bin/env nodeimport {sendMessage} from '../../index.js';import {foobarString} from '../helpers/input.js';
// This has the same shape as the message Execa sends internally to apply `gracefulCancel`.// Since it is sent by the subprocess, it is a user message, not an Execa one.await sendMessage({type: 'execa:ipc:cancel', message: foobarString});