Skip to content

Bump @vitest/mocker and vitest in /src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript - #7745

Merged
wtgodbe merged 2 commits into
mainfrom
dependabot/npm_and_yarn/src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/multi-3b33e06ed3
Sep 25, 2026
Merged

wtgodbe merged 2 commits into
mainfrom
dependabot/npm_and_yarn/src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/multi-3b33e06ed3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Bumps @vitest/mocker to 5.0.1 and updates ancestor dependency vitest. These dependencies need to be updated together.

Updates @vitest/mocker from 3.2.7 to 5.0.1

Release notes

Sourced from @​vitest/mocker's releases.

v5.0.1

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

v5.0.0

Vitest 5 is officially out! This release focuses on performance and brings a lot of new features while fixing long-standing bugs. See our blog post for the official announcement.

   🚨 Breaking Changes

... (truncated)

Commits

Updates vitest from 3.2.7 to 5.0.1

Release notes

Sourced from vitest's releases.

v5.0.1

   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

v5.0.0

Vitest 5 is officially out! This release focuses on performance and brings a lot of new features while fixing long-standing bugs. See our blog post for the official announcement.

   🚨 Breaking Changes

... (truncated)

Commits
  • 03630a5 chore: release v5.0.1 (#11275)
  • a47d790 fix(fakeTimers): force queueMicrotask and nextTick in toNotFake (#11261)
  • 2ce29d5 fix: warn when deprecated deps.optimizer.web is used (#11214)
  • ccd6d05 docs: fix typecheck exclude default in documentation (#11223)
  • 91ab158 fix(doctor): measure vm pools for custom environments (#11212)
  • 23dda73 fix: share the server on self-referencing extends (#11034)
  • 498fbe9 fix: resolve ResolvedConfig exactOptionalPropertyTypes errors (#11175)
  • 115c3f6 fix: correct typos in error message and comments (#11187)
  • 7361465 fix: keep metadata file when clearing the cache (#11199)
  • 972e24b fix(browser): avoid double quotes in config.define (#11198)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Sep 10, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner September 10, 2026 04:05
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Sep 10, 2026
@peterwald

Copy link
Copy Markdown
Member

/azp run extensions-ci

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@wtgodbe

wtgodbe commented Sep 22, 2026

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@wtgodbe
wtgodbe enabled auto-merge (squash) September 22, 2026 23:28
@peterwald

Copy link
Copy Markdown
Member

@dependabot rebase

Bumps [@vitest/mocker](https://github.com/vitest-dev/vitest/tree/HEAD/packages/mocker) to 5.0.1 and updates ancestor dependency [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest). These dependencies need to be updated together.


Updates `@vitest/mocker` from 3.2.7 to 5.0.1
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.0.1/packages/mocker)

Updates `vitest` from 3.2.7 to 5.0.1
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.0.1/packages/vitest)

---
updated-dependencies:
- dependency-name: "@vitest/mocker"
  dependency-version: 5.0.0-rc.4
  dependency-type: indirect
- dependency-name: vitest
  dependency-version: 5.0.0-rc.4
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/multi-3b33e06ed3 branch from 9897ce3 to 0b1e5fb Compare September 23, 2026 15:47
@wtgodbe

wtgodbe commented Sep 23, 2026

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@wtgodbe

wtgodbe commented Sep 23, 2026

Copy link
Copy Markdown
Member

The current failures are not caused by missing packages in the Azure Artifacts feed. Both Windows and Ubuntu successfully complete npm install from dotnet-public-npm, and all 12 package versions newly introduced by the current lockfile are available there. The failure happens afterward during TypeScript compilation.

The issue is the upgrade from vitest@3.2.6 to vitest@5.0.1 combined with @testing-library/jest-dom@6.9.1. Vitest 5 changed its assertion type shape, so the jest-dom matcher declarations no longer augment Vitest correctly; that produces the TS2339 errors for toHaveAttribute, toBeInTheDocument, etc. This is tracked upstream in testing-library/jest-dom#738.

Options, in order of risk:

  1. Pin Vitest back to 3.2.6 for now. This is the lowest-risk fix and preserves the matcher behavior the project already had. We could evaluate a Vitest 4.x update separately, but should verify it before selecting a version.
  2. Keep Vitest 5 and add a local type augmentation matching Vitest 5's Matchers<R, T> interface, together with the Vitest-specific jest-dom setup. This should be validated with both tsc and the test suite. Merely changing the setup import to @testing-library/jest-dom/vitest is not sufficient with the current jest-dom declarations because they still target the older Vitest interface shape.
  3. Wait for an upstream jest-dom release with Vitest 5 support, then update jest-dom and Vitest together.

No further package ingestion is needed unless the chosen fix changes the lockfile to introduce additional versions.

@dotnet-comment-bot

Copy link
Copy Markdown
Collaborator

‼️ Found issues ‼️

Project Coverage Type Expected Actual
Microsoft.Extensions.Diagnostics.Testing Line 99 98.65 🔻
Microsoft.Extensions.Telemetry Line 93 92.64 🔻
Microsoft.Extensions.AI.OpenAI Line 75 68.32 🔻
Microsoft.Extensions.AI.OpenAI Branch 75 57.59 🔻
Microsoft.Extensions.DataIngestion.MarkItDown Line 75 4.46 🔻
Microsoft.Extensions.DataIngestion.MarkItDown Branch 75 0 🔻
Microsoft.Extensions.Diagnostics.ResourceMonitoring Line 99 96.03 🔻
Microsoft.Extensions.Diagnostics.ResourceMonitoring Branch 99 92.76 🔻
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Kubernetes Line 99 97.73 🔻
Microsoft.Extensions.ServiceDiscovery.Dns Line 75 69.93 🔻
Microsoft.Extensions.ServiceDiscovery.Abstractions Line 75 42.11 🔻
Microsoft.Extensions.ServiceDiscovery.Abstractions Branch 75 42.86 🔻
Microsoft.Extensions.ServiceDiscovery Line 75 67.21 🔻
Microsoft.Extensions.ServiceDiscovery Branch 75 71.43 🔻
Microsoft.Extensions.ServiceDiscovery.Yarp Line 75 73.85 🔻
Microsoft.Extensions.ServiceDiscovery.Yarp Branch 75 70 🔻
Microsoft.Extensions.VectorData.Abstractions Line 75 37.39 🔻
Microsoft.Extensions.VectorData.Abstractions Branch 75 22.73 🔻

🎉 Good job! The coverage increased 🎉
Update MinCodeCoverage in the project files.

Project Expected Actual
Microsoft.Extensions.Http.Diagnostics 94 95
Microsoft.Gen.BuildMetadata 97 100
Microsoft.Gen.MetadataExtractor 57 73
Microsoft.Gen.MetricsReports 67 69
Microsoft.Extensions.AI.Abstractions 82 86
Microsoft.Extensions.AI.Evaluation.NLP 0 78
Microsoft.Extensions.Caching.Hybrid 82 84
Microsoft.Extensions.DataIngestion 75 89
Microsoft.Extensions.DataIngestion.Markdig 75 90
Microsoft.Extensions.Http.Resilience 97 100

Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1612586&view=codecoverage-tab

@wtgodbe
wtgodbe merged commit fcd5b6b into main Sep 25, 2026
5 checks passed
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/src/Libraries/Microsoft.Extensions.AI.Evaluation.Reporting/TypeScript/multi-3b33e06ed3 branch September 25, 2026 19:07
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code needs-area-label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants