-
Notifications
You must be signed in to change notification settings - Fork 88
Description
Do you want to request a feature or report a bug? (Request an Example)
Question regarding how you can unit test the translate component when its being called for example in the demo files Books.js or Movies.js.
Current Behavior:
I am looking at your unit test for the actual Translate component in Translate.test.js, but am unable to use these tests when I am testing the Translate component in my file similar to Books.js.
Would you be able to show an example of a unit test (for testing Translate) for the demo (Book.js/Movies.js)
For example: I am using Jest and React Testing Library and calling the following
<Translate data-testid="test-id1" id={movie${item}.title
} />
However, Jest is "Unable to find an element by: [data-testid="test-id1"]"
How do you recommend unit testing our Translations within the components?
Which versions of react and react-localize-redux are you using?
React 16.9.23
react-localize-redux 3.5.3