The @expectedException annotation asserts the exception happened somewhere in the method, which passes when it is thrown by the arrangement rather than by the thing under test. Placing…
A hook cannot be called outside a component, so testing one used to mean building a throwaway component and asserting on what it rendered — which tests the…
Total coverage moves so slowly that it says nothing about the change in front of you, and the question a reviewer actually has is whether the new code…
A hook cannot be called outside a component, so testing one used to mean building a throwaway component and asserting on what it rendered. act is what flushes…
Injecting a fake payment gateway into a functional test usually means a container manipulation in the test setup, which is fragile and runs after the container is compiled.…
A failing snapshot is regenerated with -u, and after the third time that becomes reflex — at which point the test asserts that the output equals whatever the…