Skip to content

Commit

Permalink
Fixing CI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Sep 8, 2024
1 parent 8b1f895 commit 146d90f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion test/testAdapter.gui.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const engineHelper = require('./engineHelper');
const guiHelper = require('./guiHelper');
const { existsSync } = require('node:fs');
const {
deleteFoldersRecursive,
} = require('@iobroker/build-tools');
Expand All @@ -14,7 +15,9 @@ describe('admin-gui', () => {
before(async function () {
this.timeout(240_000);
// Clean tmp folder
deleteFoldersRecursive(`${__dirname}/../tmp`);
if (existsSync(`${__dirname}/../tmp/iobroker-data`)) {
deleteFoldersRecursive(`${__dirname}/../tmp/iobroker-data`);
}

// install js-controller, web and vis-2-beta
await engineHelper.startIoBroker();
Expand Down
6 changes: 4 additions & 2 deletions test/testWidget.gui.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
const helper = require('@iobroker/vis-2-widgets-testing');
const { deleteFoldersRecursive } = require("@iobroker/build-tools");
const { existsSync } = require('node:fs');
const adapterName = require('../package.json').name.split('.').pop();

describe('fullcalendar', () => {
before(async function (){
// Clean tmp folder
deleteFoldersRecursive(`${__dirname}/../tmp`);

if (existsSync(`${__dirname}/../tmp/iobroker-data`)) {
deleteFoldersRecursive(`${__dirname}/../tmp/iobroker-data`);
}
this.timeout(180000);
// install js-controller, web and vis-2-beta
await helper.startIoBroker({ startOwnAdapter: true });
Expand Down

0 comments on commit 146d90f

Please sign in to comment.