@iobroker/legacy-testing 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +3 -0
  2. package/package.json +1 -1
  3. package/setup.js +13 -7
package/README.md CHANGED
@@ -14,6 +14,9 @@ Set process.env.JS_CONTROLLER_VERSION to version e.g. `5.0.5-alpha.0-20230617-46
14
14
 
15
15
  ## Changelog
16
16
  <!-- ### **WORK IN PROGRESS** -->
17
+ ### 1.0.5 (2023-12-15)
18
+ * (bluefox) Added support for vis-1 testing
19
+
17
20
  ### 1.0.4 (2023-12-15)
18
21
  * (bluefox) Allowed GUI tests for tab_m.html too
19
22
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.4",
2
+ "version": "1.0.5",
3
3
  "name": "@iobroker/legacy-testing",
4
4
  "main": "setup.js",
5
5
  "files": [
package/setup.js CHANGED
@@ -3,18 +3,24 @@
3
3
  /* jslint node: true */
4
4
 
5
5
  // check if tmp directory exists
6
- const fs = require('fs');
7
- const path = require('path');
8
- const cp = require('child_process');
9
- const rootDir = path.normalize(`${__dirname}/../../../`);
10
- const pkg = require(`${rootDir}package.json`);
11
- const debug = typeof v8debug === 'object';
12
- pkg.main = pkg.main || 'main.js';
6
+ const fs = require('fs');
7
+ const path = require('path');
8
+ const cp = require('child_process');
9
+ let rootDir = path.normalize(`${__dirname}/../../../`);
10
+ const debug = typeof v8debug === 'object';
13
11
 
14
12
  let JSONLDB;
15
13
 
16
14
  let adapterName = path.normalize(rootDir).replace(/\\/g, '/').split('/');
15
+ if (adapterName[adapterName.length - 2] === 'vis-2-widgets-testing') {
16
+ rootDir = path.normalize(`${__dirname}/../../../../../../`);
17
+ adapterName = path.normalize(rootDir).replace(/\\/g, '/').split('/');
18
+ }
17
19
  adapterName = adapterName[adapterName.length - 2];
20
+
21
+ let pkg = require(`${rootDir}package.json`);
22
+ pkg.main = pkg.main || 'main.js';
23
+
18
24
  const adaptersStarted = {};
19
25
  const pids = {};
20
26