Skip to content
Myr

Fix test for exit code 1 on windows (#78)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sam Verschueren · committed by Sindre Sorhus · parent 2892941 · Browse files · 2 files+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−1 removed

  • other:+2 added−1 removed

2 files+2 added−1 removed

modified:fixtures/error-message.js+1 added-1 removed
modified:test.js+1 added
38 unmodified lines
39test('include stdout and stderr in errors for improved debugging', async t => {40 const err = await t.throws(m('fixtures/error-message.js'));41 t.regex(err.message, /stdout/);42 t.regex(err.message, /stderr/);43 t.is(err.code, 1);44});4546test('do not include in errors when `stdio` is set to `inherit`', async t => {47 const err = await t.throws(m('fixtures/error-message.js', {stdio: 'inherit'}));
330 unmodified lines