Skip to content
Myr

ipc-send-io-error.js

This file

Path

test/fixtures/ipc-send-io-error.js

7 lines · 202 bytes · JavaScript

Last changed by

Add tests for I/O errors during `sendMessage()` (#1095)ehmickybefore adoptionc6c66da

History of this file

Take it

Add tests for I/O errors during `sendMessage()` (#1095)ehmickybefore adoptionc6c66da

lines 1–7why, one step back
1#!/usr/bin/env node
2import process from 'node:process';3import {sendMessage} from '../../index.js';4import {mockSendIoError} from '../helpers/ipc.js';56mockSendIoError(process);7await sendMessage('.');