Skip to content
Myr

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 file

Take it

Harden some thingsSindre Sorhusbefore adoption4a0a121

lines 1–7why, one step back
1#!/usr/bin/env node
2import {sendMessage} from '../../index.js';3import {foobarString} from '../helpers/input.js';45// This has the same shape as the message Execa sends internally to apply `gracefulCancel`.6// Since it is sent by the subprocess, it is a user message, not an Execa one.7await sendMessage({type: 'execa:ipc:cancel', message: foobarString});