Skip to content
Myr

meta tweaks

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

authored by Sindre Sorhus · committed by Sindre Sorhus · parent 9345d2c · Browse files · 4 files+15 added−20 removed
This commit

State

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

Diff stats

4 files+15 added−20 removed

  • other:+15 added−20 removed

4 files+15 added−20 removed

modified:.editorconfig-3 removed
8 unmodified lines
910[{package.json,*.yml}]11indent_style = space12indent_size = 21314[*.md]15trim_trailing_whitespace = false
modified:package.json+2 added-2 removed
modified:readme.md+8 added-4 removed
modified:test.js+5 added-11 removed
12 unmodified lines
13 t.is(stdout.toString(), 'foo');14});1516test('stdout/stderr available on errors', async t => {17 try {18 await m('exit', ['2']);19 } catch (err) {20 t.is(typeof err.stdout, 'string');21 t.is(typeof err.stdout, 'string');17 const err = await t.throws(m('exit', ['2']));18 t.is(typeof err.stdout, 'string');19 t.is(typeof err.stderr, 'string');22 }20});2122test('include stdout in errors for improved debugging', async t => {26 try {27 await m('./fixtures/error-message.js');28 } catch (err) {29 t.true(err.message.indexOf('stdout') !== -1);30 }23 const err = await t.throws(m('./fixtures/error-message.js'));24 t.true(err.message.indexOf('stdout') !== -1);25});2627test('execa.shell()', async t => {28 const {stdout} = await m.shell('echo foo');
33 unmodified lines