Custom Test Expectations

We've had a brief look at some of Pest's built-in test expectations.

Now let's have a look at how we can create our own. The good news is that this is really simple so lets create a 'toMatchJson' expectation which will compare a json string with how we expect it to look.

Branch: https://github.com/GaryClarke/pest-tdd/tree/4-custom-test-expectations

Complete and Continue  
Discussion

0 comments