New blog post! After a bunch of requests on GitHub, here's my methodology for sharing global state between Jest tests in a Node.js environment with the Fastify framework. My main objective is to improve performance by instantiating the PostgreSQL database with Testcontainers only one time, before running any test suite. Since that project in particular is using Prisma as the ORM, I also share how to setup a valid Prisma connection, including how to reset and reseed the database on each test run to maintain isolation.
https://giovanni.orciuolo.it/blog/how-to-share-global-state-between-tests-fastify-jest
https://giovanni.orciuolo.it/blog/how-to-share-global-state-between-tests-fastify-jest
Giovanni Orciuolo | Website
How to share global state between tests in Jest with a Fastify Node.js backend
The title says it all pretty much
Giovanni Orciuolo
Video
possibile che ogni volta che la ascolto mi viene da piangere
Siamo live con il torneo di Tekken in diretta dal Parrot Sushi Lan di Roma!
https://www.twitch.tv/erniebowl
https://www.twitch.tv/erniebowl
Twitch
ErnieBowl - Twitch
ERNIEDOJO TEKKEN CAMP TEAM BATTLE live dal SUSHI PARROT LAN! - !bootcamp !coaching !merch !telegram !discord