diff options
author | Gar <gar+gh@danger.computer> | 2022-04-20 17:12:39 +0300 |
---|---|---|
committer | nlf <nlf@github.com> | 2022-05-03 21:16:03 +0300 |
commit | d654e7e9146f123a9806cfd9a17150eb1f6075a4 (patch) | |
tree | d947301d0f1fcbb4ee3e24db76b5470e966cc2f8 /test | |
parent | 9ed00dc9f31e5f9237c981d11784dd6cd4bd1df4 (diff) |
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.
Diffstat (limited to 'test')
-rw-r--r-- | test/fixtures/mock-npm.js | 4 |
1 files changed, 3 insertions, 1 deletions
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() |