Skip to content

Conversation

@holgerd77
Copy link
Member

This updates vitest to get the browser tests going again, see #4151 for reference.

Vitest/browser combination was running locally again with the version update, but some errors occur in VM which should be addressed (not directly browser releated I suppose, so not disturbing browser compatibility).

This message might point to something like this though:
"Module "events" has been externalized for browser compatibility. Cannot access "events.EventEmitter" in client code. See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details."

(also for VM)

For local browser testing one needs to install playwright with (to not side-inject in package.json):

npm i playwright --no-save
npx playwright install [ chromium]

@holgerd77
Copy link
Member Author

Ther message above actually points to polyfills, hope we haven't forgotten anything on last release. 🤔

grafik

@codecov
Copy link

codecov bot commented Oct 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.68%. Comparing base (be0c4f6) to head (9471c42).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

Flag Coverage Δ
block 87.58% <ø> (ø)
blockchain 89.37% <ø> (ø)
common 97.43% <ø> (ø)
evm 72.39% <ø> (ø)
mpt 89.69% <ø> (ø)
statemanager 80.21% <ø> (ø)
static 99.77% <ø> (ø)
tx 88.64% <ø> (-1.40%) ⬇️
util 88.88% <ø> (ø)
vm 57.17% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@holgerd77
Copy link
Member Author

Only basic CI stuff, will admin-merge.

@holgerd77 holgerd77 merged commit 7893718 into master Oct 17, 2025
33 checks passed
@holgerd77 holgerd77 deleted the update-vitest branch October 17, 2025 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants