From 7296df7b009d4408993f6916952c44675291c5e9 Mon Sep 17 00:00:00 2001 From: Daan Vanden Bosch Date: Tue, 29 Sep 2020 19:12:52 +0200 Subject: [PATCH] .env.test can now be overridden with .env.test.local. --- test/src/setup.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/src/setup.js b/test/src/setup.js index e1576d48..9cb75bc5 100644 --- a/test/src/setup.js +++ b/test/src/setup.js @@ -1,4 +1,8 @@ -require("dotenv").config({ path: ".env.test" }); +const fs = require("fs"); + +require("dotenv").config({ + path: fs.existsSync(".env.test.local") ? ".env.test.local" : ".env.test", +}); // For GoldenLayout. window.$ = require("jquery");