Post

Web component library maintainers, how do you intend for your users to write tests in React with your components? It feels like shadow roots pose a big challenge. I’m wondering if we might need to develop some kind of test harness to abstract the shadow DOM away.

i expose certain internal dom elements needed for tests and exception configuration. i call them “internal access props”. they return a dom element instead of another primitive. i expect consumers use those because shadow dom spelunking is brittle af.

0 reposts1 like

No replies yet.