New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
happy dom environmentoptions in vite.config.ts don't work #4040
Comments
Start a new pull request in StackBlitz Codeflow. |
It should be |
Should it be
|
Yes, sorry. JS name is consistent with how happyDOM names it in its js API |
Describe the bug
since #3972 fixed
pass environmentOptions to happy-dom integration
, set url by adding annotation before test file works well, but set url byenvironmentoptions
invite.config.ts
file still has no effect.It cause
window.location.href
to be the defaulthttp://localhost:3000/
, anddocument.cookie
is empty even cookie was setting bymsw
Reproduction
https://stackblitz.com/edit/vitest-happy-dom-environmentoptions-test?file=test%2Fglobal.test.ts
global.test.ts
failed,annotation.test.ts
passed.System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: