@iobroker/legacy-testing 2.1.1 → 2.1.2

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.
package/README.md CHANGED
@@ -16,7 +16,7 @@ Legacy test modules for ioBroker
16
16
  Set `process.env.JS_CONTROLLER_VERSION` to version e.g. `5.0.5-alpha.0-20230617-464b0fd6`
17
17
 
18
18
  ## Changelog
19
- ### 2.1.1 (2026-07-12)
19
+ ### 2.1.2 (2026-07-12)
20
20
  - (@GermanBluefox) The module was rewritten in TypeScript. The sources live now in `src/` and are compiled to `build/`. The public API and import paths stayed the same.
21
21
  - (@GermanBluefox) If `JS_CONTROLLER_VERSION` is not set, js-controller `7.2.2` is installed on Node.js <= 20 and the `dev` build on newer Node.js versions.
22
22
 
@@ -8,7 +8,7 @@ exports.setOnStateChanged = setOnStateChanged;
8
8
  */
9
9
  const node_fs_1 = require("node:fs");
10
10
  const setup_1 = require("./setup");
11
- let rootDir = `${__dirname}/../../../`;
11
+ let rootDir = `${__dirname}/../../../../`;
12
12
  let objects = null;
13
13
  let states = null;
14
14
  let onStateChanged = null;
package/build/setup.js CHANGED
@@ -24,12 +24,12 @@ const node_fs_1 = require("node:fs");
24
24
  const node_path_1 = require("node:path");
25
25
  const node_child_process_1 = require("node:child_process");
26
26
  const node_net_1 = require("node:net");
27
- let rootDir = (0, node_path_1.normalize)(`${__dirname}/../../../`);
27
+ let rootDir = (0, node_path_1.normalize)(`${__dirname}/../../../../`);
28
28
  const debug = typeof globalThis.v8debug === 'object';
29
29
  let JSONLDB;
30
30
  let adapterParts = (0, node_path_1.normalize)(rootDir).replace(/\\/g, '/').split('/');
31
31
  if (adapterParts[adapterParts.length - 2] === 'vis-2-widgets-testing') {
32
- rootDir = (0, node_path_1.normalize)(`${__dirname}/../../../../../../`);
32
+ rootDir = (0, node_path_1.normalize)(`${__dirname}/../../../../../../../`);
33
33
  adapterParts = (0, node_path_1.normalize)(rootDir).replace(/\\/g, '/').split('/');
34
34
  }
35
35
  const adapterName = adapterParts[adapterParts.length - 2];
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const chai_1 = require("chai");
4
4
  const node_fs_1 = require("node:fs");
5
5
  // node_modules/@iobroker/legacy-testing/tests/testPackageFiles.js
6
- const adapterDir = process.env.IOBROKER_ROOT_DIR || `${__dirname}/../../../../`;
7
- const alternativeAdapterDir = `${__dirname}/../../../../`;
6
+ const adapterDir = process.env.IOBROKER_ROOT_DIR || `${__dirname}/../../../../../`;
7
+ const alternativeAdapterDir = `${__dirname}/../../../../../`;
8
8
  describe('Test package.json and io-package.json', () => {
9
9
  it('Test package files', done => {
10
10
  console.log();
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.1.1",
2
+ "version": "2.1.2",
3
3
  "name": "@iobroker/legacy-testing",
4
4
  "main": "build/setup.js",
5
5
  "types": "build/setup.d.ts",