Skip to content
Myr

early-error.js

This file

Path

test/helpers/early-error.js

9 lines · 522 bytes · JavaScript

Last changed by

Update test coverage for Node.js 26 (#1242)Sindre Sorhusbefore adoption68986b7

History of this file

Take it

The walk stopped after 200 commits: lines older than 9f65b86 point at it.

100% test coverage (#1018)ehmickybefore adoption9f65b86

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

Improve `cancelSignal` option (#1108)ehmickybefore adoption3b56977

line 3why, one step back
3export const earlyErrorOptions = {detached: 'true'};

100% test coverage (#1018)ehmickybefore adoption9f65b86

line 4why, one step back
4export const getEarlyErrorSubprocess = options => execa('empty.js', {...earlyErrorOptions, ...options});

Update test coverage for Node.js 26 (#1242)Sindre Sorhusbefore adoption68986b7

line 5why, one step back
5export const earlyErrorOptionsSync = {windowsHide: 'true'};

Improve validation and typing of signals (#1025)ehmickybefore adoption7213287

line 6why, one step back
6export const getEarlyErrorSubprocessSync = options => execaSync('empty.js', {...earlyErrorOptionsSync, ...options});

100% test coverage (#1018)ehmickybefore adoption9f65b86

lines 7–8why, one step back
7
8export const expectedEarlyError = {code: 'ERR_INVALID_ARG_TYPE'};

Update test coverage for Node.js 26 (#1242)Sindre Sorhusbefore adoption68986b7

line 9why, one step back
9export const expectedEarlyErrorSync = {code: 'ERR_INVALID_ARG_TYPE'};