We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf729ab commit 922631cCopy full SHA for 922631c
tests/exec.spec.js
@@ -10,4 +10,10 @@ describe('exec', () => {
10
stdout: 'exec.js\nexec.spec.js\n'
11
});
12
13
+
14
+ test('the execvp error code is in the error message if the call fails', async () => {
15
+ await expect(() => execAsync('node tests/exec.js foo')).rejects.toThrow(
16
+ 'execvp failed with code ENOENT: No such file or directory'
17
+ );
18
+ });
19
0 commit comments