From befbf08e140d82f93724a0f73881fd6a4ae6f4d8 Mon Sep 17 00:00:00 2001 From: AndrewFinlay Date: Thu, 2 Apr 2020 00:15:00 +1100 Subject: [PATCH] chore: A test where nyc output help text to stderr was flaky (#1269) This change allows for flaky output of help information from `yargs` to `stderr` when running `nyc` as a child process. Fixes #1259 --- test/nyc-integration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/nyc-integration.js b/test/nyc-integration.js index 05ce5ddb2..35ee19293 100644 --- a/test/nyc-integration.js +++ b/test/nyc-integration.js @@ -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 => {