From 3d5a9bf5e7a44286254c8a5fd9f674537ba41d4f Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Mon, 28 Mar 2022 15:23:39 -0500 Subject: [PATCH] Fix next info test during stable release (#35668) --- test/integration/cli/test/index.test.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/integration/cli/test/index.test.js b/test/integration/cli/test/index.test.js index c3d7aad3092b..de5951fbcfef 100644 --- a/test/integration/cli/test/index.test.js +++ b/test/integration/cli/test/index.test.js @@ -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: