You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bfe4633
Browse filesBrowse the repository at this point in the historyBrowse files
// When the subprocess fails to spawn, `spawnSync()` returns no output. Like with asynchronous methods, each piped output is empty instead.
29
+
// This is the output `spawnSync()` returns when the subprocess succeeds without printing anything: `stdin` and non-piped file descriptors are `null`. Input pipes on other file descriptors cannot be used with synchronous methods.
test('execaSync() output is empty when the command does not exist',()=>testSpawnFailureOutput({}));
56
+
test('execaSync() output is empty when the command does not exist, with encoding: buffer',()=>testSpawnFailureOutput({encoding: 'buffer'}));
57
+
test('execaSync() output is empty when the command does not exist, with lines: true',()=>testSpawnFailureOutput({lines: true}));
58
+
test('execaSync() output is empty when the command does not exist, with all: true',()=>testSpawnFailureOutput({all: true}));
59
+
test('execaSync() output is empty when the command does not exist, with an additional file descriptor',()=>testSpawnFailureOutput(fullStdio));
60
+
test('execaSync() output is undefined when the command does not exist, with stdout: ignore',()=>testSpawnFailureOutput({stdout: 'ignore'}));
61
+
test('execaSync() output is undefined when the command does not exist, with buffer: false',()=>testSpawnFailureOutput({buffer: false}));
62
+
test('execaSync() output is empty when the cwd does not exist',()=>testSpawnFailureOutput({cwd: '/nonexistent-directory-for-execa'}));
63
+
test('execaSync() output runs the final of transforms when the command does not exist',()=>testSpawnFailureOutput({stdout: convertTransformToFinal(getOutputGenerator(foobarString)(),true)}));
0 commit comments