When to use integration tests over e2e tests?
Hey! Yesterday I tested a feature which required me to mount multiple components and link them via a store and router (in vue). The setup was quite complex and there was a problem with the router which did not call the in-component guards. So I had to manually simulate these…
Test thrown error in async fetching
Hey all, I am trying to write a test on a React component where I want to check if an error was thrown in an async operation during rendering a functional component (for example something like this: https://codesandbox.io/embed/dazzling-yalow-xsi16) Where I am struggling now is…
Any downsides to leaving `data-testid` in production build?
My team is considering a revamp to our testing practices and a question came up: should we leave data-testid in the production build? The knee-jerk answer was to strip the value using a babel plugin, but we couldn't come up with a reason why that was necessary. What are your…
[Need Info] - Any open source react application where RTL is used ?
Hi, We are trying to demo some examples of RTL to the team, we have a basic react app with login credentials and the next page created with https://create-react-app.dev/docs/getting-started/, We are looking for some open source react application where RTL is used already at…