react-spectrum
3db98d2d - Updating testing documentation and exposing some testing utils (#5508)

Commit
1 year ago
Updating testing documentation and exposing some testing utils (#5508) * progress on updating the testing docs * setup and testing of new util packages * move test utils to react-spectrum and add provider wrapper * restoring StrictModeWrapper * add desktop and mobile mock util setup * starting to remove triggerPress in favor of user event library click * remove triggerPress * fix SSR tests and react 16/17 tests * work around weird react16/17 test failure for now * get rid of triggerTouch and typeText * move stuff to aria/test-utils package * fix menutrigger tests * replacing fireEvent with userEvent equivalents in hooks tests pt1 * wrapping up hooks tests fireEvent replacements couldnt get the pointer/mouseMoves replaces, will revisit * fix some lint issues * first batch of spectrum test fireEvent -> userEvent replacement * fix tests in 16/17 again missing asyncs * updating testing docs and linking to it from various components * temporarily restore old test util package and move ssr stuff there * make react-spectrum/test-util-internal to limit what is exposed from test util package was running into build/docs issues with re-exporting @testing-library/react, this feels like it makes more sense anyways, dont think we wanna expose our render wrapper yet * adding docs for installmouseevent * add peer deps * fix combobox test * try to fix tsfork * fix ts fork pt 2 * test lower version requirements * fix tests * missed one test update * review updates * removing todo * messed up a copy paste
Author
Parents
Loading