allow setting the directory to run tests from

This commit is contained in:
Brian Hicks 2023-05-03 14:48:21 -05:00
parent fb8b19a6d8
commit c63a3176e3
No known key found for this signature in database
GPG Key ID: C4F324B9CAAB0D50

View File

@ -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({