Fix next info test during stable release (#35668)

This commit is contained in:
JJ Kasper 2022-03-28 15:23:39 -05:00 committed by GitHub
parent 50be7cc17d
commit 3d5a9bf5e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: