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
hey, this seems like a really awesome module and keen to use it in a React project, thanks! 😄
this isn't hugely important, i'm mostly just curious: would it be possible to use min-document as the minimal DOM implementation? that way this module can focus on the core features of unit testing with React instead of having to roll its own minimal DOM (and all the nuances of that endeavour).
The text was updated successfully, but these errors were encountered:
Hi @ahdinosaur this certainly looks like a cool idea. I'll try it in the next few days.
The actual DOM mock code in react-unit is only about 10 lines of js, since most of the heavy-lifting is mapping the React shallow render representation into something that resembles a DOM.
In any case using a real DOM library like min-document will probably make Sizzle happier than an ad-hoc mock an thus catch currently unsupported/unknown selectors.
Thanks for pointing me in this direction, I'll add more feedback in this issue after having played with min-document for a bit.
hey, this seems like a really awesome module and keen to use it in a React project, thanks! 😄
this isn't hugely important, i'm mostly just curious: would it be possible to use
min-document
as the minimal DOM implementation? that way this module can focus on the core features of unit testing with React instead of having to roll its own minimal DOM (and all the nuances of that endeavour).The text was updated successfully, but these errors were encountered: