Skip to content

Commit

Permalink
Fix next info test during stable release
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Mar 28, 2022
1 parent 50be7cc commit 9994fe8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/integration/cli/test/index.test.js
Expand Up @@ -491,7 +491,12 @@ describe('CLI Usage', () => {
stdout: true,
stderr: true,
})
expect(info.stderr || '').toBe('')

// when a stable release is done the non-latest canary
// warning will show so skip this check for the stable release
if (pkg.version.includes('-canary')) {
expect(info.stderr || '').toBe('')
}
expect(info.stdout).toMatch(
new RegExp(`
Operating System:
Expand Down

0 comments on commit 9994fe8

Please sign in to comment.