Blog

How to use Jest matchers with Vitest

Vitest can be used as a drop-in replacement for Jest. Using Jest matchers and assertions with Vitest takes just a little bit of setup configuration.

100% code coverage? Easy!

The code coverage metric can easily be manipulated without actually improving the test quality. Be mindful what it does and doesn't measure.

Testing touch gestures with Playwright

Recently I needed to find a way to implement an automated Playwright test that ensured that the pinch-to-zoom gesture worked on a page in mobile browsers. I was able to find a solution using the Chrome DevTools Protocol and the VisualViewport API.