Skip to content

Commit

Permalink
Fix next info test during stable release (#35668)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk authored Mar 28, 2022
1 parent 50be7cc commit 3d5a9bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/integration/cli/test/index.test.js
Original file line number Diff line number Diff line change
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 3d5a9bf

Please sign in to comment.