Global Setup
Loading "Optimizing Test Setup (๐ solution)"
Run locally for transcripts
๐จโ๐ผ With this global setup, we have a base database that is based on our schema
and has the critical seed data we need for our tests to run. You've done a
spectacular job and I think you should be proud of yourself. ๐๐
The Epic Stack goes further by copying over the test database for each test
individually which keeps each test completely isolated. Feel free to check it
out here:
https://github.com/epicweb-dev/epic-stack/blob/5de13cba9f320d380eef3a71711674160b00e37f/tests/setup/db-setup.ts#L10-L12