From d654e7e9146f123a9806cfd9a17150eb1f6075a4 Mon Sep 17 00:00:00 2001 From: Gar Date: Wed, 20 Apr 2022 07:12:39 -0700 Subject: fix: start consolidating color output chalk already has a way to disable color output, so if we don't want color we can disable it there and always use that instance of chalk. This was only updated in the two commands that have real tests. Doing it in the other places is going to require making their tests real so that we don't ALSO have to rewrite their tests just to change their internal code. --- test/fixtures/mock-npm.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/fixtures/mock-npm.js b/test/fixtures/mock-npm.js index 4263dc8fb..c9701ebc2 100644 --- a/test/fixtures/mock-npm.js +++ b/test/fixtures/mock-npm.js @@ -132,7 +132,9 @@ const LoadMockNpm = async (t, { }) const npm = init ? new Npm() : null - t.teardown(() => npm && npm.unload()) + t.teardown(() => { + npm && npm.unload() + }) if (load) { await npm.load() -- cgit v1.2.3