Notes

Short notes about anything that catches my attention. Also a place to save stuff I keep forgetting over and over.

07/16/2026

10:49

Jest is full of niceties. Today I've discovered it.failing. It's for writing tests that are expected to fail.

01/31/2025

17:47

Sometimes you're working on a particular test and don't want to run other specs. You run your tests adding a path pattern parameter, but you're not interested on the rest of the spec also. On these situations, I used to comment all other tests, but then I discovered the .only "modifier". You can append to describe and it to restrict what should be ran. You can even dismiss the path param.

01/31/2025

17:43

In Jest, the difference between toEqual and toMatchObject is that toEqual checks for total equality, while toMatchObject checks for a partial match. This post is a good ref.

This is a hand-crafted, a little weird personal website. Create one of your own!