When running npm test, the test.env file will be used to fetch the environment variables, instead of the .env (used for development).
A test case for checking the connection with the DB has been added, by creating an user directly in the database using Prisma.
This will be replaced by proper query/mutation tests later.
When running
npm test
, thetest.env
file will be used to fetch the environment variables, instead of the.env
(used for development).A test case for checking the connection with the DB has been added, by creating an user directly in the database using Prisma. This will be replaced by proper query/mutation tests later.