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 fileTake it
12345678910import {execa, execaSync} from '../../index.js';
export const earlyErrorOptions = {detached: 'true'};export const getEarlyErrorSubprocess = options => execa('empty.js', {...earlyErrorOptions, ...options});export const earlyErrorOptionsSync = {windowsHide: 'true'};export const getEarlyErrorSubprocessSync = options => execaSync('empty.js', {...earlyErrorOptionsSync, ...options});
export const expectedEarlyError = {code: 'ERR_INVALID_ARG_TYPE'};export const expectedEarlyErrorSync = {code: 'ERR_INVALID_ARG_TYPE'};