You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi team! Thanks for the great work on Vitest! 🙏
When running a test with browser mode enabled (using Playwright), my third party library lcid is undefined, and test will fail.
If I try with browser mode disabled, lcid is available and test passes.
See github repo example for reproduction. (could not get browsers to work in stackblitz)
I think this was a duplicate of #4264 (lcid is cjs package) and the issue seems to be slowHijackESM: true which was the default before #4414.
You can either manually set it to slowHijackESM: false or upgrade Vitest v1 so that it's false by default.
Describe the bug
Hi team! Thanks for the great work on Vitest! 🙏
When running a test with browser mode enabled (using Playwright), my third party library
lcid
is undefined, and test will fail.If I try with browser mode disabled,
lcid
is available and test passes.See github repo example for reproduction. (could not get browsers to work in stackblitz)
Reproduction
https://github.com/apdrsn/vitest-import-bug
Run:
yarn playwright install
yarn playwright install-deps
yarn test
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: