Skip to content

chore(deps): update vitest monorepo to v5 - #1101

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-vitest-monorepo
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-vitest-monorepo

Conversation

@renovate

@renovate renovate Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
@vitest/browser-playwright (source) 4.1.12 → 5.1.2 age confidence
@vitest/coverage-v8 (source) 4.1.12 → 5.1.2 age confidence
@vitest/ui (source) 4.1.12 → 5.1.2 age confidence
vitest (source) 4.1.12 → 5.1.2 age confidence

Release Notes

vitest-dev/vitest (@​vitest/browser-playwright)

v5.1.2

Compare Source

   🐞 Bug Fixes
   🏎 Performance
    View changes on GitHub

v5.1.1

Compare Source

   🚀 Features
   🐞 Bug Fixes
   🏎 Performance
    View changes on GitHub

v5.1.0

Compare Source

   🚀 Features
   🐞 Bug Fixes
   🏎 Performance
    View changes on GitHub

v5.0.5

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v5.0.4

Compare Source

   🚀 Features
   🐞 Bug Fixes

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@nx-cloud

nx-cloud Bot commented Sep 6, 2026 •

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit a5d27b3

Command Status Duration Result
nx affected -t test -c ci ❌ Failed 54s View ↗
nx affected -t lint ✅ Succeeded <1s View ↗

💡 Dealing with memory or CPU issues? See memory and CPU details with the resource usage add-on ↗.


☁️ Nx Cloud last updated this comment at 2026-12-02 16:13:24 UTC

@renovate
renovate Bot force-pushed the renovate/major-vitest-monorepo branch 6 times, most recently from e62c0fa to 115407f Compare September 11, 2026 03:18
@coderabbitai

coderabbitai Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d189725c-605d-4bbe-b6f3-3d0502373dc4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@renovate
renovate Bot force-pushed the renovate/major-vitest-monorepo branch 10 times, most recently from aeb2884 to 97de4f9 Compare September 19, 2026 01:28
@renovate
renovate Bot force-pushed the renovate/major-vitest-monorepo branch 8 times, most recently from 1300306 to d41eda1 Compare September 25, 2026 06:05
@renovate
renovate Bot force-pushed the renovate/major-vitest-monorepo branch 4 times, most recently from cc33ff4 to 65fc7cc Compare September 27, 2026 21:38
@renovate
renovate Bot force-pushed the renovate/major-vitest-monorepo branch 14 times, most recently from 889716f to 61219c0 Compare October 17, 2026 21:25
@renovate
renovate Bot force-pushed the renovate/major-vitest-monorepo branch 5 times, most recently from 1e60737 to d4858b4 Compare October 18, 2026 21:42
nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

nx-cloud[bot]

This comment was marked as outdated.

@nx-cloud nx-cloud Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nx Cloud is proposing a fix for your failed CI:

We fixed the pdf-viewer:test:ci failure caused by the Vitest 5 upgrade. Vitest 5 now rejects vi.mock and vi.hoisted calls that are not at the top level, and the Angular esbuild bundler was wrapping both spec files in a __commonJS function. Adding export {}; to each spec makes the bundler keep them as plain ES modules, so the mocks stay at the top level. All 64 tests in the project now pass locally.

Tip

✅ We verified this fix by re-running pdf-viewer:test:ci.

diff --git a/libs/ng/pdf-viewer/src/lib/pdf-viewer.component.spec.ts b/libs/ng/pdf-viewer/src/lib/pdf-viewer.component.spec.ts
index 6618afc..76adcb9 100644
--- a/libs/ng/pdf-viewer/src/lib/pdf-viewer.component.spec.ts
+++ b/libs/ng/pdf-viewer/src/lib/pdf-viewer.component.spec.ts
@@ -191,3 +191,6 @@ describe('PdfViewerComponent', () => {
     });
   });
 });
+
+// Marks the file as an ES module so the bundler keeps vi.mock at the top level (required by Vitest 5)
+export {};
diff --git a/libs/ng/pdf-viewer/src/lib/pdf-viewer.lifecycle.spec.ts b/libs/ng/pdf-viewer/src/lib/pdf-viewer.lifecycle.spec.ts
index 8993f6e..5b0e20a 100644
--- a/libs/ng/pdf-viewer/src/lib/pdf-viewer.lifecycle.spec.ts
+++ b/libs/ng/pdf-viewer/src/lib/pdf-viewer.lifecycle.spec.ts
@@ -450,3 +450,6 @@ describe('PdfViewerComponent lifecycle', () => {
     });
   });
 });
+
+// Marks the file as an ES module so the bundler keeps vi.mock at the top level (required by Vitest 5)
+export {};

Apply fix via Nx Cloud  Reject fix via Nx Cloud


Or Apply changes locally with:

npx nx-cloud apply-locally 56a2-wZXX

Apply fix locally with your editor ↗   View interactive diff ↗



🎓 Learn more about Self-Healing CI on nx.dev

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants