Environment variables for local server and testing (Jest)

Given your current setup, the easiest way is to just replace the current content of your setEnvVars.js to:

require('dotenv').config()

It will load the env vars from your existing .env file.