Logo Awesome React

Awesome React

How prettier is a testing tool

A while back I tweeted (https://twitter.com/kentcdodds/status/1037390351277772800):

šŸ”„ Hot take: Static analysis tools (like @geteslint, @PrettierCode, @typescriptlang, and @flowtype) are testing tools just like @fbjest and @Cypress_io

Some folks were curious about how I could consider prettier to be a testing tool. Let's look at some examples.