Skip to content

Bump mocha from 10.8.2 to 11.7.6 in /packages/databricks-vscode#1964

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/packages/databricks-vscode/mocha-11.7.6
Closed

Bump mocha from 10.8.2 to 11.7.6 in /packages/databricks-vscode#1964
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/packages/databricks-vscode/mocha-11.7.6

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 3, 2026

Copy link
Copy Markdown
Contributor

⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


Bumps mocha from 10.8.2 to 11.7.6.

Release notes

Sourced from mocha's releases.

v11.7.6

11.7.6 (2026-02-14)

🩹 Fixes

  • make describe().timeout() work (aafe6fd)
  • test: replace wmic usage with native Windows API (#5694) (73ebdfa)

🧹 Chores

v11.7.5

11.7.5 (2025-11-04)

🩹 Fixes

  • swallow more require errors from *ts files (#5498) (d89dbaf)

🧹 Chores

v11.7.4

11.7.4 (2025-10-01)

🩹 Fixes

📚 Documentation

  • migrate remaining legacy wiki pages to main documentation (#5465) (bff9166)

🧹 Chores

v11.7.3

11.7.3 (2025-09-30)

... (truncated)

Changelog

Sourced from mocha's changelog.

11.7.6 (2026-02-14)

🩹 Fixes

  • make describe().timeout() work (aafe6fd)
  • test: replace wmic usage with native Windows API (#5694) (73ebdfa)

🧹 Chores

11.7.5 (2025-11-04)

🩹 Fixes

  • swallow more require errors from *ts files (#5498) (d89dbaf)

🧹 Chores

11.7.4 (2025-10-01)

🩹 Fixes

📚 Documentation

  • migrate remaining legacy wiki pages to main documentation (#5465) (bff9166)

🧹 Chores

11.7.3 (2025-09-30)

🩹 Fixes

  • use original require() error for TS files if ERR_UNKNOWN_FILE_EXTENSION (#5408) (ebdbc48)

... (truncated)

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jul 3, 2026
@dependabot dependabot Bot temporarily deployed to test-trigger-is July 3, 2026 14:53 Inactive
@rugpanov

rugpanov commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

🤖 Integration tests ❌ 3 of 4 test jobs failed for 99024afc (0 passed, 1 skipped).
View run

Bumps [mocha](https://github.com/mochajs/mocha) from 10.8.2 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](mochajs/mocha@v10.8.2...v11.7.6)

---
updated-dependencies:
- dependency-name: mocha
  dependency-version: 11.7.6
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/packages/databricks-vscode/mocha-11.7.6 branch from 99024af to 19320ad Compare July 3, 2026 20:35
@dependabot dependabot Bot temporarily deployed to test-trigger-is July 3, 2026 20:35 Inactive
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/vscode

Inputs:

  • PR number: 1964
  • Commit SHA: 19320ad11765731d30ceb0e77d2a74ff479883cd

Checks will be approved automatically on success.

@rugpanov

rugpanov commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

🤖 Integration tests ❌ 3 of 4 test jobs failed for 19320ad1 (0 passed, 1 skipped).
View run

rugpanov added a commit that referenced this pull request Jul 6, 2026
## Why

Dependabot #1964 bumped `mocha` to 11.7.6, but the one-line
`package.json` change **fails CI**. mocha is consumed via the `ts-mocha`
wrapper, whose `^10.0.0` pin peer-caps mocha at `^10.X.X`, so the bump
produces a peer-dependency conflict (reproduced locally by applying the
PR verbatim):

```
YN0060: databricks provides mocha 11.7.6, which doesn't satisfy what ts-mocha requests
```

CI installs with `yarn install --immutable` (`unit-tests.yml`,
`push.yml`, `create-build-artifacts.yml`, `release-pr.yml`), so the
stale/conflicting lockfile makes the install step fail outright — which
is why #1964 is BLOCKED.

## What

- Bump `mocha` `^10.2.0` → `^11.7.6` (the Dependabot change).
- Bump `ts-mocha` `^10.0.0` → `^11.1.0` (latest), whose peer range now
includes `^11.X.X`.
- Regenerate `yarn.lock`.

Notes for the reviewer:
- **ts-mocha 11 moved `ts-node` + `tsconfig-paths` from direct deps to
peers.** The extension already declares `ts-node@^10.9.2` (satisfies the
peer) and `tsconfig-paths` is an *optional* peer — so no additions are
needed.
- `@types/mocha@^10.0.6` is unchanged: `10.0.10` is still `latest` (no
v11 types line; the mocha type API is stable).
- `@wdio/mocha-framework@9.29.0` pulls its **own** `mocha@^10.3.0` as a
*direct* dependency, so the e2e/wdio path is unaffected and keeps mocha
10 internally.
- Engine: mocha 11 requires node `^18.18 || ^20.9 || >=21.1`; the
extension requires `node >=22.0`.

Dev-only dependency — no runtime, extension-behavior, or shipped-output
change for users.

## Verification

- `yarn install --immutable` passes (no `YN0028`, no `YN0060`).
- `yarn run build` (`tsc --build`) succeeds.
- `test:integ:sdk` (`ts-mocha --type-check`, `--dry-run`) type-checks
and loads all `src/sdk-extensions/**/*.integ.ts` files and collects the
suite.
- `yarn run test:unit`: **268 passing, 0 failing** (mocha 11 `new Mocha`
harness in `suite.ts`).
- `eslint` clean on `suite.ts` and the mocha-consuming test files.

Supersedes #1964 (which cannot merge without the `ts-mocha` bump).

This pull request and its description were written by Isaac.

---
<!-- GITHUB_MCP_FOOTER: This attribution is automatically appended by
GitHub MCP. -->
_This PR was created with [GitHub MCP](http://go/mcps)._
@rugpanov

rugpanov commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

already fixed

@rugpanov rugpanov closed this Jul 6, 2026
@dependabot @github

dependabot Bot commented on behalf of github Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/packages/databricks-vscode/mocha-11.7.6 branch July 6, 2026 11:27
@github-actions github-actions Bot mentioned this pull request Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant