refactor tests in 3 categories unit, e2e and electron

This commit is contained in:
Karsten Hassel
2021-09-13 22:28:27 +02:00
parent 60e03777f3
commit 974de179e0
26 changed files with 81 additions and 100 deletions

View File

@@ -1,24 +1,15 @@
const helpers = require("./global-setup");
const fetch = require("node-fetch");
const app = require("../../js/app.js");
describe("Vendors", function () {
helpers.setupTimeout(this);
let app = null;
beforeAll(function () {
process.env.MM_CONFIG_FILE = "tests/configs/env.js";
return helpers
.startApplication({
args: ["js/electron.js"]
})
.then(function (startedApp) {
app = startedApp;
});
app.start();
});
afterAll(function () {
return helpers.stopApplication(app);
app.stop();
});
describe("Get list vendors", function () {