mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-04 07:02:12 +03:00
allow setting the directory to run tests from
This commit is contained in:
parent
fb8b19a6d8
commit
c63a3176e3
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user