Return the component from render
EmilTholin opened this issue · 1 comments
EmilTholin commented
It might be beneficial to return rendered
from the render function. It's a very pleasent testing experience to $set
props (or use getters and setters when compiled with accessors: true
) on the component in order to test that it is working properly.
What do you think?
export const render = (Component, options) => {
// ...
return {
+ component: rendered,
...getQueriesForElement(document.body),
}
}
benmonro commented
:tada: This issue has been resolved in version 1.2.0 :tada:
The release is available on:
Your semantic-release bot 📦🚀