Description
Example of React-Intl integration
React-testing-library is really awesome .
I've been working with react-intl and react-testing-library and the setup is really simple.
Althougt I've been stuck during some time to understand how both libs play together adding support to locale languages, that is a react-intl issue, and I've filled a suggestion to update docs around it, and I think it could be nice to have a functional example of it on the examples folder of react-testing-library.
Suggested implementation:
I've created a codesandbox to show how easy is to do it, but it has some tricks, and I wonder if it could be an example on this repository, I've followed some guides I found on the readme, and react-redux example.
I've implemented a RenderWithReactIntl
component to deal with it.
https://codesandbox.io/s/yq2jz85jx1
I'll be glad to make a PR with it, if you find it valuable.
Thanks in advance.