-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Bypass vitest bug #32647
Bypass vitest bug #32647
Conversation
It's not a vitest bug, but likely happy-dom. Vitest is just a test runner, it does not implement DOM APIs. Should report it there. |
capricorn86/happy-dom#1620 might be related. |
Yup, I also have thought about it and I also felt that it might be highly related to DOM. But I couldn't detect happy-dom by checking |
* giteaofficial/main: Introduce OrgList and add LoadTeams, optimaze Load teams for orgs (go-gitea#32543) Refactor markup render system (go-gitea#32645) Fix: passkey login not working anymore (go-gitea#32623) Refactor some frontend problems (go-gitea#32646) Bypass vitest bug (go-gitea#32647) Fix race condition in mermaid observer (go-gitea#32599) Improve oauth2 scope token handling (go-gitea#32633) Fixed Issue of Review Menu Shown Behind (go-gitea#32631) Add github compatible tarball download API endpoints (go-gitea#32572) Fix markup render regression and fix some tests (go-gitea#32640) Fix sqlite3 test (go-gitea#32622) Strict pagination check (go-gitea#32548)
I think the canonical way to detect vitest environment is either |
Then it comes the question: how could it access |
Webpack will compile out |
Hmm, OK, maybe no need that trick since we have the plugin. |
Maybe we need this Make frontend unit test code could know it is in testing #32656 , to distinguish from backend's "testing" |
No description provided.