Skip to content

Commit

Permalink
chore: A test where nyc output help text to stderr was flaky (#1269)
Browse files Browse the repository at this point in the history
This change allows for flaky output of help information from `yargs` to `stderr` when running `nyc` as a child process.

Fixes #1259
  • Loading branch information
AndrewFinlay authored Apr 1, 2020
1 parent 9260a70 commit befbf08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/nyc-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ t.test('nyc displays help to stderr when it doesn\'t know what to do', async t =

t.equal(status, 1)
t.equal(stdout, '')
t.equal(stderr, help.stdout)
t.match(stderr, help.stdout)
})

t.test('handles --clean / --no-clean properly', async t => {
Expand Down

0 comments on commit befbf08

Please sign in to comment.