indigotech / onboard-pedro-dietrich

Project for onboarding on Taqtile. Consists in a back-end server to learn about Typescript, Node, GraphQL and other tools.
0 stars 0 forks source link

Configure Chai and testing database integration #17

Closed pedro-m-dietrich closed 2 months ago

pedro-m-dietrich commented 2 months ago

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.