diff --git a/scripts/run-cypress-tests.js b/scripts/run-cypress-tests.js index e6fd48f..76533d9 100644 --- a/scripts/run-cypress-tests.js +++ b/scripts/run-cypress-tests.js @@ -1,4 +1,4 @@ const cypress = require('cypress'); -require('./start-server'); +const server = require('./start-server'); -cypress.run().then(() => liveServer.close()); +cypress.run().then(() => server.close()); diff --git a/scripts/start-server.js b/scripts/start-server.js index f12b50c..4ff04a1 100644 --- a/scripts/start-server.js +++ b/scripts/start-server.js @@ -10,4 +10,6 @@ const params = { noCssInject: true, }; -liveServer.start(params); +const server = liveServer.start(params); + +module.exports = server;