From c63a3176e3c0b3fd3d18494ef07e0642de87dd5c Mon Sep 17 00:00:00 2001 From: Brian Hicks Date: Wed, 3 May 2023 14:48:21 -0500 Subject: [PATCH] allow setting the directory to run tests from --- script/puppeteer-tests.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/puppeteer-tests.js b/script/puppeteer-tests.js index 45ce03be..8cb41b56 100644 --- a/script/puppeteer-tests.js +++ b/script/puppeteer-tests.js @@ -17,7 +17,9 @@ describe("UI tests", function () { let browser; before(async () => { - server = httpServer.createServer({ root: `${__dirname}/../public` }); + server = httpServer.createServer({ + root: process.env.ROOT || `${__dirname}/../public`, + }); server.listen(PORT); browser = await puppeteer.launch({