Fix next info test during stable release (#35668)
This commit is contained in:
parent
50be7cc17d
commit
3d5a9bf5e7
1 changed files with 6 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue