paralleldrive / riteway

Simple, readable, helpful unit tests.
MIT License
1.15k stars 35 forks source link

Add renderLit to render-component #370

Open geireann opened 5 months ago

geireann commented 5 months ago

This PR adds an additional renderLit function into the riteway/render-component path of this package to support Lit elements. The renderLit function takes in an element parameter of type TemplateResult and returns a Cheerio instance that can be used in the exact same way as the previous render for Lit elements.

The default render method will use renderReact and use the previous implementation.

Todo:

ericelliott commented 1 month ago

We are using renderFixture and renderShadow in our platform repo. Should they be here?