Replies: 1 comment 6 replies
|
Well 2 days later it's become apparent that there's no real way to do it (without browser emulation at least) 😅 The comments in #4903 outline arguments for not really unit/emulation/ The comments in #4928 then mention the decision to use full @ianstormtaylor, @dylans, |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
So I'm running unit tests for
slate-reacton thejsdomwith@testing-library/react.mouse & keyboardor useslate.Transforms?Normalizations&onEvent()handlersI've seen the lib itself tends to rely on
Transformsand I'm mainly wondering if that's recommended/stable in most cases?And additionally, if maybe there was a better way than reacting to native
onKeyDownevents for doing stuff of that nature.All reactions