iTwin attempting to import styles during unit test #1978
-
After updating our app to iTwinUI-React v3, some components are attempting to import style sheets. We are wrapping the component in a Specifically, this is happening when trying to click the Filter button in a table header. You can see a reproduction here: (Stop the app and run Adding Any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This shouldn't be happening because we bail in test environments. iTwinUI/packages/itwinui-react/src/core/ThemeProvider/ThemeProvider.tsx Lines 308 to 309 in 3d42bc1 Is the I also could not get your repro link to run at all. FAIL src/App.test.tsx
● Test suite failed to run
can't access lexical declaration 'App_1' before initialization |
Beta Was this translation helpful? Give feedback.
fixed in 3.9.0 🚀