Enabling dotenv to be done w/in globalSetup

This commit is contained in:
Kira 2023-09-18 12:02:47 -07:00
parent 5aedbc8e2c
commit 786778c7cf
2 changed files with 6 additions and 0 deletions

5
globalSetup.js Normal file
View File

@ -0,0 +1,5 @@
import * as dotenv from "dotenv"
export default () => {
dotenv.config()
}

View File

@ -23,6 +23,7 @@ const config = {
*/ */
timeout: 5000 timeout: 5000
}, },
globalSetup: require.resolve("./globalSetup.js"),
/* Run tests in files in parallel */ /* Run tests in files in parallel */
fullyParallel: true, fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */ /* Fail the build on CI if you accidentally left test.only in the source code. */