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
But perhaps this should/could be more straightforward or clearly available?
For problem (2)
There's an experimental renderToCanvas property to allow users to define their own render function that's not tied to Testing Library. For example:
import{render}from'your-renderer';setProjectAnnotations({renderToCanvas: ({ storyFn })=>{constStory=storyFn();// Svelterender(Story.Component,Story.props);// Vuerender(Story);// or for Reactrender(<Story/>);},});
If usage is high for this, it should be made stable.
Describe alternatives you've considered
No response
Are you able to assist to bring the feature to reality?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
When using portable stories, you must set up the testing environment with
setProjectAnnotations:Simplified to highlight relevant portion
The
testingLibraryRenderoption either does not or does not clearly support:renderfunctionsrenderfunctionsDescribe the solution you'd like
For problem (1)
You can define your own configured
renderlike so:Simplified to highlight relevant portion
But perhaps this should/could be more straightforward or clearly available?
For problem (2)
There's an experimental
renderToCanvasproperty to allow users to define their own render function that's not tied to Testing Library. For example:If usage is high for this, it should be made stable.
Describe alternatives you've considered
No response
Are you able to assist to bring the feature to reality?
no
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions