Open KyleJune opened 2 years ago
It appears this currently doesn't work when importing testing-library from esm.sh.
I have a branch locally where I started working on this, the branch is named test.
For this, I believe I should be using StaticRouter since the tests are not running in the browser. Below is a guide for testing react-router. The example uses v5, I added a link below highlighting the differences between v5 and v6.
https://testing-library.com/docs/example-react-router/ https://reactrouter.com/docs/en/v6/upgrading/v5
Below is a guide for testing react-query.
https://testing-library.com/docs/react-testing-library/intro/