Skip to content

Commit

Permalink
test(default-reporter): always mock the env when testing update checker
Browse files Browse the repository at this point in the history
ref #5301

Thanks @gwhitney for finding this issue.
  • Loading branch information
zkochan committed Sep 9, 2022
1 parent f3fc6b5 commit 32814aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/default-reporter/test/reportingUpdateCheck.ts
Expand Up @@ -9,6 +9,7 @@ test('does not print update if latest is less than current', (done) => {
const output$ = toOutput$({
context: {
argv: ['install'],
env: {},
},
streamParser: createStreamParser(),
})
Expand Down Expand Up @@ -37,6 +38,7 @@ test('print update notification if the latest version is greater than the curren
context: {
argv: ['install'],
config: { recursive: true } as Config,
env: {},
},
streamParser: createStreamParser(),
})
Expand Down

0 comments on commit 32814aa

Please sign in to comment.