Repository navigation
chore(deps): update vitest monorepo to v5 - #1101
renovate[bot] wants to merge 1 commit into
Conversation
|
View your CI Pipeline Execution ↗ for commit a5d27b3
💡 Dealing with memory or CPU issues? See memory and CPU details with the resource usage add-on ↗. ☁️ Nx Cloud last updated this comment at |
e62c0fa to
115407f
Compare
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
aeb2884 to
97de4f9
Compare
1300306 to
d41eda1
Compare
cc33ff4 to
65fc7cc
Compare
889716f to
61219c0
Compare
1e60737 to
d4858b4
Compare
There was a problem hiding this comment.
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 {};
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
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
4.1.12→5.1.24.1.12→5.1.24.1.12→5.1.24.1.12→5.1.2Release Notes
vitest-dev/vitest (@vitest/browser-playwright)
v5.1.2Compare Source
🐞 Bug Fixes
detailsPosition: bottomfor auto-opened trace view - by @hi-ogawa and Claude Opus 5.5 in #12016 (366ac)🏎 Performance
View changes on GitHub
v5.1.1Compare Source
🚀 Features
🐞 Bug Fixes
expect.assertions/hasAssertions- by @hi-ogawa and Claude Opus 5.5 in #11900 (50dcd)-and.innoExternalwildcards - by @hi-ogawa and Claude Opus 5.5 in #11978 (efba8)signal- by @sheremet-va in #11998 (77a30)messageand remove redundant[ERROR]in trace steps - by @hi-ogawa and Claude Opus 5.5 in #11832 (1d115)--bailcorrectly - by @AriPerkkio in #11896 (4f91e)ignoreNodeAST type from installed parser - by @AriPerkkio in #11958 (cab34)expect.polltrace steps in concurrent tests - by @hi-ogawa and Claude Opus 5.5 in #11869 (f6ef4)testTimeoutis disabled - by @AriPerkkio in #11924 (97911)isolate: falseto not re-use workers that failed to start - by @AriPerkkio in #11953 (7e672)🏎 Performance
View changes on GitHub
v5.1.0Compare Source
🚀 Features
--last-failedto run only failed tests - by @sheremet-va in #11558 (82f63)Temporal.InstantandTemporal.ZonedDateTimeinvi.setSystemTime()- by @Prajwal2246, Prajwal2246, Claude Opus 5.5 (1M context), @hi-ogawa and Codex (GPT-6) in #11321 (f150f)--since-last-runflag - by @sheremet-va in #11516 (08bd9)node:timersandnode:timers/promise- by @hi-ogawa, OpenCode and Codex (GPT-6) in #10899 (fbe97)pointerAPI - by @macarie in #10780 (5dc09)ignoreNodeoption - by @erickserra and @AriPerkkio in #11688 (e02db)🐞 Bug Fixes
--changedfiltering - by @sheremet-va in #11621 (3a39c)watchfrom the root config in projects - by @nstepien and Claude Opus 5.5 (1M context) in #11724 (77c12)page.viewport()- by @sheremet-va in #11738 (49ff4)autoAttachSubprocessto use.tmpdirectory - by @AriPerkkio in #11632 (de5af)🏎 Performance
magic-string+rolldownfor instrumentation - by @AriPerkkio in #11648 (2470b)Promise.all- by @AriPerkkio in #11713 (f1092)View changes on GitHub
v5.0.5Compare Source
🐞 Bug Fixes
fs.denywith api token file - by @hi-ogawa, Hiroshi Ogawa and Claude Opus 5.5 in #11578 (28dc1)--changed- by @sheremet-va in #11583 (14921)datato theimport.meta.hotstub - by @sheremet-va in #11590 (3a828)skipinskipIf, ignoreundefinedoptions - by @sheremet-va in #11591 (d523a)&#​39;failed&#​39;on worker crash - by @AriPerkkio in #11568 (6ae8e)View changes on GitHub
v5.0.4Compare Source
🚀 Features
test.ui.themeoption - by @sheremet-va in #11499 (1da66)--changed- by @sheremet-va in #11424 (a2336)🐞 Bug Fixes
:in project and change the shape ofresultscache - by @sheremet-va in #11453 (9673c)$string values when `taskTitlConfiguration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.