@iobroker/testing 2.5.2 → 2.5.3

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/CHANGELOG.md CHANGED
@@ -4,6 +4,9 @@
4
4
  PLACEHOLDER for next version:
5
5
  ## __WORK IN PROGRESS__
6
6
  -->
7
+ ## 2.5.3 (2022-01-29)
8
+ * Fix: Ensure the tests use the `file` DB type
9
+
7
10
  ## 2.5.2 (2021-09-18)
8
11
  * Fix: `adminUI.config` is now respected for the config UI check and JSON config is allowed too
9
12
  * Updated dependencies
@@ -44,4 +47,4 @@
44
47
  ## v2.0.2
45
48
  * **Unit tests:** added mocks for `getAbsoluteDefaultDataDir` and `getAbsoluteInstanceDataDir`
46
49
 
47
- Sorry, there isn't more yet.
50
+ Sorry, there isn't more yet.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 AlCalzone <d.griesel@gmx.net>
3
+ Copyright (c) 2022 AlCalzone <d.griesel@gmx.net>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -176,11 +176,13 @@ class ControllerSetup {
176
176
  * @param testDir The directory the integration tests are executed in
177
177
  */
178
178
  async setupSystemConfig() {
179
- debug("Moving databases to different ports...");
179
+ debug(`Moving databases to different ports and setting type "file"...`);
180
180
  const systemFilename = path.join(this.testDataDir, `${this.appName}.json`);
181
181
  const systemConfig = require(systemFilename);
182
182
  systemConfig.objects.port = 19001;
183
+ systemConfig.objects.type = "file";
183
184
  systemConfig.states.port = 19000;
185
+ systemConfig.states.type = "file";
184
186
  await (0, fs_extra_1.writeFile)(systemFilename, JSON.stringify(systemConfig, null, 2));
185
187
  debug(" => done!");
186
188
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/testing",
3
- "version": "2.5.2",
3
+ "version": "2.5.3",
4
4
  "description": "Shared utilities for adapter and module testing in ioBroker",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -38,38 +38,38 @@
38
38
  },
39
39
  "homepage": "https://github.com/AlCalzone/testing#readme",
40
40
  "devDependencies": {
41
- "@alcalzone/release-script": "^3.3.0",
42
- "@alcalzone/release-script-plugin-license": "^3.3.0",
41
+ "@alcalzone/release-script": "^3.5.0",
42
+ "@alcalzone/release-script-plugin-license": "^3.5.0",
43
43
  "@iobroker/adapter-core": "^2.5.1",
44
44
  "@tsconfig/node12": "^1.0.9",
45
- "@types/chai": "^4.2.21",
45
+ "@types/chai": "^4.2.22",
46
46
  "@types/chai-as-promised": "^7.1.4",
47
47
  "@types/debug": "4.1.7",
48
- "@types/fs-extra": "^9.0.12",
48
+ "@types/fs-extra": "^9.0.13",
49
49
  "@types/iobroker": "^3.3.4",
50
50
  "@types/mocha": "^9.0.0",
51
- "@types/node": "^16.9.2",
52
- "@types/sinon": "^10.0.2",
53
- "@types/sinon-chai": "^3.2.5",
54
- "@typescript-eslint/eslint-plugin": "^4.31.1",
55
- "@typescript-eslint/parser": "^4.31.1",
51
+ "@types/node": "^16.10.2",
52
+ "@types/sinon": "^10.0.6",
53
+ "@types/sinon-chai": "^3.2.8",
54
+ "@typescript-eslint/eslint-plugin": "^4.33.0",
55
+ "@typescript-eslint/parser": "^4.33.0",
56
56
  "eslint": "^7.32.0",
57
57
  "eslint-config-prettier": "^8.3.0",
58
58
  "eslint-plugin-prettier": "^4.0.0",
59
59
  "prettier": "^2.4.1",
60
60
  "rimraf": "^3.0.2",
61
- "source-map-support": "^0.5.20",
61
+ "source-map-support": "^0.5.21",
62
62
  "ts-node": "^10.2.1",
63
- "typescript": "~4.4.3"
63
+ "typescript": "~4.4.4"
64
64
  },
65
65
  "dependencies": {
66
- "alcalzone-shared": "~4.0.0",
66
+ "alcalzone-shared": "~4.0.1",
67
67
  "chai": "^4.3.4",
68
68
  "chai-as-promised": "^7.1.1",
69
- "debug": "^4.3.2",
69
+ "debug": "^4.3.3",
70
70
  "fs-extra": "^10.0.0",
71
- "mocha": "^9.1.1",
72
- "sinon": "^11.1.2",
71
+ "mocha": "^9.1.3",
72
+ "sinon": "^12.0.1",
73
73
  "sinon-chai": "^3.7.0"
74
74
  }
75
75
  }