mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 09:48:18 -05:00
test: migrate mashup tests to use enigma mocker (#725)
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
const yargs = require('yargs');
|
||||
|
||||
const mashupServer = require('../test/mashup/server');
|
||||
const sseServer = require('../test/fixtures/sse');
|
||||
const useEngine = require('../commands/serve/lib/engine');
|
||||
|
||||
const args = yargs
|
||||
@@ -12,18 +11,13 @@ const args = yargs
|
||||
type: 'boolean',
|
||||
describe: 'Start the mashup server',
|
||||
})
|
||||
.option('sse', {
|
||||
default: true,
|
||||
type: 'boolean',
|
||||
describe: 'Start the SSE plugin',
|
||||
})
|
||||
.option('engine', {
|
||||
default: false,
|
||||
type: 'boolean',
|
||||
describe: 'Start the engine',
|
||||
}).argv;
|
||||
|
||||
const { start, sse, engine } = args;
|
||||
const { start, engine } = args;
|
||||
|
||||
let hasCleanedUp = false;
|
||||
const services = [];
|
||||
@@ -42,17 +36,6 @@ if (start) {
|
||||
});
|
||||
}
|
||||
|
||||
if (sse) {
|
||||
const s = sseServer;
|
||||
services.push({
|
||||
name: 'SSE plugin server',
|
||||
start: () => {
|
||||
s.start();
|
||||
},
|
||||
stop: () => s.close(),
|
||||
});
|
||||
}
|
||||
|
||||
if (engine) {
|
||||
let e;
|
||||
services.push({
|
||||
|
||||
Reference in New Issue
Block a user