techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.6K
active users

#vitest

1 post1 participant0 posts today

J'ai peu utilisé le snapshot testing pendant ma carrière, mais avec #vitest le niveau de simplicité est hallucinant.

La lib intègre telle quelle une api pour générer des #snapshots dans les #tests sous forme de string, super pour lire des snapshots de petits objets, et qui fonctionne de la même manière que celle des snapshots classiques sous forme de fichiers. Le CLI permet d'update les 2 types snapshots pendant le watch du test, c'est juste ultra pratique et facile à utiliser.

Replied in thread

@deadparrot That was a shitty starter repo! Monorepo with TS, instant HMR and <1m build time is state-of-the-art.

We've got to take responsibility for our tools. I was just part of an effort to migrate an app with 25 microfrontends from CRA + Yarn Classic + Jest to #Rsbuild + #pnpm + #vitest. It took a couple of weeks, while continuing work on features.

There's a lot of shitty legacy tooling, so we need to teach juniors the good stuff, and tell mgmt to smoke it and eat the costs of upgrading.