Fix #2714 - Start demo server before running integration tests

- Use port 3001 instead of  300 to not conflict with the demo
This commit is contained in:
Bruno Ribeiro
2021-04-06 15:48:48 +01:00
parent eedc314ca2
commit 27c87319c1
13 changed files with 19 additions and 12 deletions
+7
View File
@@ -34,6 +34,13 @@ if (process.argv.length > 2) {
env.DEBUG = flagArgs.indexOf('--debug') >= 0 ? 'debug' : '';
env.PORT = 3001;
const server = cp.spawn('node', ['demo/start'], {
cwd: path.resolve(__dirname, '..'),
env,
stdio: 'inherit'
})
const run = cp.spawnSync(
npmBinScript('mocha'),