From 3184c6989e44da944e2868bb8ca6cc9c8370b239 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 29 May 2026 11:19:16 +0000 Subject: [PATCH 1/2] Bump mocha from 11.7.5 to 11.7.6 Bumps [mocha](https://github.com/mochajs/mocha) from 11.7.5 to 11.7.6. - [Release notes](https://github.com/mochajs/mocha/releases) - [Changelog](https://github.com/mochajs/mocha/blob/v11.7.6/CHANGELOG.md) - [Commits](https://github.com/mochajs/mocha/compare/v11.7.5...v11.7.6) --- updated-dependencies: - dependency-name: mocha dependency-version: 11.7.6 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4c22d2ea7..a151834dc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -88,7 +88,7 @@ "lodash": "^4.18.1", "markdown-it": "^14.2.0", "mkdirp": "^3.0.1", - "mocha": "^11.7.5", + "mocha": "^11.7.6", "module-alias": "^2.3.4", "node-yaml-parser": "^0.0.9", "npm-run-all": "^4.1.5", @@ -13146,9 +13146,9 @@ "optional": true }, "node_modules/mocha": { - "version": "11.7.5", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-11.7.5.tgz", - "integrity": "sha512-mTT6RgopEYABzXWFx+GcJ+ZQ32kp4fMf0xvpZIIfSq9Z8lC/++MtcCnQ9t5FP2veYEP95FIYSvW+U9fV4xrlig==", + "version": "11.7.6", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-11.7.6.tgz", + "integrity": "sha512-nS9xOGbw2I3cjCpxwZAEJ9xK9lmJ08vEkQvLtz4du9ZrF9UrjRpeJGiIgl2Z+Qs++pmB4ecDe48Fwsh+j+j7xA==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 364604ed4..e107dabe9 100644 --- a/package.json +++ b/package.json @@ -152,7 +152,7 @@ "lodash": "^4.18.1", "markdown-it": "^14.2.0", "mkdirp": "^3.0.1", - "mocha": "^11.7.5", + "mocha": "^11.7.6", "module-alias": "^2.3.4", "node-yaml-parser": "^0.0.9", "npm-run-all": "^4.1.5", From 7b1c1cf352ab34fa571bde24dc2cddd2da500346 Mon Sep 17 00:00:00 2001 From: Victor Rubezhny Date: Fri, 29 May 2026 15:50:21 +0200 Subject: [PATCH 2/2] fixup: Bump mocha from 11.7.5 to 11.7.6 #5825 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Workaround for regression in Mocha@11.7.6: - [🐛 Bug: Regression in 11.7.6: Suite.timeout() propagation (#5612) can trigger ERR_MOCHA_TIMEOUT / ERR_MOCHA_MULTIPLE_DONE after all tests pass](https://github.com/mochajs/mocha/issues/6028) Signed-off-by: Victor Rubezhny --- test/ui/suite/componentContextMenu.ts | 35 ++++++++++++++++----------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/test/ui/suite/componentContextMenu.ts b/test/ui/suite/componentContextMenu.ts index 86603c39d..aaf46ce39 100644 --- a/test/ui/suite/componentContextMenu.ts +++ b/test/ui/suite/componentContextMenu.ts @@ -56,8 +56,15 @@ export function testComponentContextMenu() { } }); + afterEach(async function () { + await VSBrowser.instance.driver.wait( + async () => true, + 1000 + ); + }); + it('Start Dev works', async function () { - this.timeout(60_000); + this.timeout(80_000); await waitForItemStable(getSection, componentName, true); @@ -145,7 +152,7 @@ export function testComponentContextMenu() { expect(terminalText).to.include('Press any key to close this terminal'); }); - it('Start/Stop Dev on Podman works', async () => { + it('Start/Stop Dev on Podman works', async function () { this.timeout(80_000); await stabilizeComponentsView(getSection); @@ -208,7 +215,8 @@ export function testComponentContextMenu() { expect(terminalText).to.contain('Kubernetes components'); }); - it('Show dev terminal works', async () => { + it('Show dev terminal works', async function () { + this.timeout(80_000); const component = await waitForItemStable(getSection, componentName, false); //open menu and select show dev terminal @@ -220,7 +228,7 @@ export function testComponentContextMenu() { expect(tabName).to.contain(expectedTabName); }); - it('Debug works', async () => { + it('Debug works', async function () { this.timeout(80_000); const component = await waitForItemStable(getSection, componentName, false); @@ -240,19 +248,18 @@ export function testComponentContextMenu() { const debugConsole = await bottomBar.openDebugConsoleView(); //wait for console to have text - // await new Promise((res) => setTimeout(res, 1_000)); const bottomBarText = await bottomBar.getDriver().wait( - async () => { - const text = await debugConsole.getText(); + async () => { + const text = await debugConsole.getText(); - if (text && text.includes('App started on PORT')) { - return text; - } + if (text && text.includes('App started on PORT')) { + return text; + } - return null; - }, - 20_000, - 'Debug console did not contain expected output' + return null; + }, + 20_000, + 'Debug console did not contain expected output' ); expect(bottomBarText).to.contain('App started on PORT');