Route Handler Resolver Test

If we run the tests now we will discover that our feature test is failing because the RouteHandlerResolver does not yet have a 'resolve' method.

This is an indicator for us to branch off and correct this dependency of our feature test. How do we do this? By creating a unit test for the RouteHandlerResolver and using that test to drive out its functionality.

Once the RHR satisfies the requirements of its unit test and the tests are all green, we can return to our feature test and find out what is needed next. The tests are leading us all the way to the solution.

I can code like this all day because the tests are doing most of the thinking for me.

Branch: https://github.com/GaryClarke/pest-tdd/tree/30-route-handler-resolver-test

Complete and Continue  
Discussion

0 comments