
Writing Change-Proof Software with Tests - JSJ 555
JavaScript Jabber
00:00
React Testing Library - How to Test a React Rendering Process
With an end to end test, you kind of look from the outside on the entire system as a black box. So if you've got two renders, but the second render brings it to a correct situation, then there's a good chance that the end toend test will pass even though the implementation is apart. On the other hand, also the unit test which works at the component level is also potentially insufficient because each render in and of itself was correct. It just got incorrect data as an input. You kind of need to find a way to test the system as a whole, but like you said, with insight into how that system operates. I would use an architecture to fake out all
Transcript
Play full episode