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
Thank-you for the report! The suspenseFallback option was added in Enzyme v3.10.0 and is currently not handled at all by the Preact adapter.
The suspenseFallback option is also only available for shallow rendering, so your example project won't work with React either as far as I can see.
In the interim, I would look for examples of how to test suspense components and fallbacks that don't rely on Enzyme features but instead just use the regular React API.
When writing a test to validate my component is rendered, I see the fallback value.
here is component
here is test
here is result of the console.log
as you can see there is not any of
LazyComponent
onlyfallback
here is repo with code
https://github.com/michael-vasyliv/preact-project
similar issue in enzymejs/enzyme#2200
The text was updated successfully, but these errors were encountered: