Closed GlenTiki closed 4 years ago
After having spent some time writing tests building on this, I've found it needs some major changes to better support tests involving context trees being updated by events, so I'm closing this for a fork https://github.com/nearform/libp2p-introspection-ui/pull/32 which adapts this to use a customised react-testing-library
I've updated this and it should now be good to go:
prepare
in packages that support it, so latest builds are used when packages pull each other incatalogue
andshell
tests to fail with "Invalid hook calls" because Jest's module resolver doesn't treat peer dependencies like real resolvers do and always looks in the root node_modules, causing multiple instances of React when importing from the package that was intended to provide React to all the peer deps