Skip to content

Commit

Permalink
Fix server
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsnik committed May 13, 2018
1 parent 2445854 commit b1d3624
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/run-cypress-tests.js
Original file line number Diff line number Diff line change
@@ -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());
4 changes: 3 additions & 1 deletion scripts/start-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ const params = {
noCssInject: true,
};

liveServer.start(params);
const server = liveServer.start(params);

module.exports = server;

0 comments on commit b1d3624

Please sign in to comment.