Companion repo for my blog post: Speedy Prisma+PostgreSQL Tests. Based on Prisma's official testing-express example. The first commit in this repo is in fact a copy of that example.
$ npm install
You can run the following to start a new PostgreSQL Docker container:
$ ./scripts/pg-docker.sh
You're otherwise free to start postgres however you'd like.
Rename the .env.example
file to .env
, and make sure DB_URL
is accurate -- if you started postgres with pg-docker.sh
, then you don't need to change anything.
$ npm test