mwood23 / slate-test-utils

A toolkit to test Slate rich text editors with Jest, React Testing Library, and hyperscript! Write user driven integration tests with ease.
MIT License
57 stars 6 forks source link

Support @testing-library/react v13.x #14

Open apaatsio opened 2 years ago

apaatsio commented 2 years ago

slate-test-utils@1.3.2 depends on @testing-library/react v12. Trying to install slate-test-utils with @testing-library/react v13 fails.

$ npm i --save-dev slate-test-utils                                                                                                                     
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: my-project@0.1.0
npm ERR! Found: @testing-library/react@13.3.0
npm ERR! node_modules/@testing-library/react
npm ERR!   dev @testing-library/react@"13.3.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @testing-library/react@"^12.1.2" from slate-test-utils@1.3.2
npm ERR! node_modules/slate-test-utils
npm ERR!   dev slate-test-utils@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.