Activate Websocket and add browser console logging

This commit is contained in:
Chi Vinh Le
2018-05-29 16:42:04 +02:00
parent b15a306c43
commit 3a84da9495
16 changed files with 80 additions and 26 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ process.env['NODE_ENV'] = 'test';
const browserstack = require('browserstack-local');
const { onshutdown, shutdown } = require('../bin/util');
const program = require('commander');
const Table = require('cli-table');
const Table = require('cli-table2');
const serve = require('../serve');
const childProcess = require('child_process');
const uuid = require('uuid').v4;
@@ -181,7 +181,7 @@ class E2E {
console.log('Dropping test database');
await mongoose.connection.dropDatabase();
console.log('Starting the server');
await serve();
await serve({ websockets: true });
if (this.browserstackEnabled) {
browserstack.localIdentifier = this.localIdentifier;