MCPcopy Index your code
hub / github.com/nodejs/node / mockShelloutExit

Function mockShelloutExit

deps/npm/test/lib/cli/exit-handler.js:682–691  ·  view source on GitHub ↗
(t, opts)

Source from the content-addressed store, hash-verified

680
681t.test('do no fancy handling for shellouts', async t => {
682 const mockShelloutExit = (t, opts) => mockExitHandler(t, {
683 command: 'exec',
684 argv: ['-c', 'exit'],
685 config: {
686 timing: false,
687 progress: false,
688 ...opts.config,
689 },
690 ...opts,
691 })
692
693 t.test('shellout with a numeric error code', async t => {
694 const { exitHandler, logs, errors } = await mockShelloutExit(t, {

Callers 1

exit-handler.jsFile · 0.85

Calls 1

mockExitHandlerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…