-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[Bug]: Vitest + React + FluentUI test of Button component fails while rendering #30589
Comments
@layershifter |
I'm running into the same thing. Here's a repro that was created using npm create vite@latest for a new react project. Added vitest and fluentui react components and then a simple test. |
@rosergeev still broken 😭 |
@spellicer thanks, now it's clear.
|
It was created as private devbox, I haven't noticed that, sorry for inconvenience. I have changed permissions |
Can confirm that with version 2.0.229 error has gone |
|
Library
React Components / v9 (@fluentui/react-components)
System Info
Are you reporting Accessibility issue?
None
Reproduction
https://codesandbox.io/p/devbox/testfluenticon-pwl72c?file=%2Fsrc%2Fcomponents%2FSomeButton.tsx%3A12%2C31
Bug Description
Actual Behavior
Our team uses Vite framework for build and vitest for testing.
I have created simple component SomeButton that wraps button from fluentui and created a test that renders it. Test fails to render SomeButton component even I delete all properties of the button(related or not to icon)
Expected Behavior
No errors in test
Logs
Requested priority
Blocking
Products/sites affected
ImageMaster OfficeClient Add-In
Are you willing to submit a PR to fix?
no
Validations
The text was updated successfully, but these errors were encountered: