Enabling dotenv to be done w/in globalSetup
This commit is contained in:
parent
5aedbc8e2c
commit
786778c7cf
|
@ -0,0 +1,5 @@
|
||||||
|
import * as dotenv from "dotenv"
|
||||||
|
|
||||||
|
export default () => {
|
||||||
|
dotenv.config()
|
||||||
|
}
|
|
@ -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. */
|
||||||
|
|
Loading…
Reference in New Issue