Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@iobroker/testing

Package Overview
Dependencies
Maintainers
5
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iobroker/testing - npm Package Compare versions

Comparing version 1.1.10 to 1.1.11

45

build/tests/integration/index.js

@@ -69,27 +69,30 @@ "use strict";

});
beforeEach(() => __awaiter(this, void 0, void 0, function* () {
// Clean up before every single test
yield Promise.all([
controllerSetup.clearDBDir(),
controllerSetup.clearLogDir(),
dbConnection.writeDB(objectsBackup, statesBackup),
]);
// Create a new test harness
harness = new harness_1.TestHarness(adapterDir, testDir);
// Enable the adapter and set its loglevel to debug
yield harness.changeAdapterConfig(appName, testDir, adapterName, {
common: {
enabled: true,
loglevel: "debug",
},
beforeEach(function () {
return __awaiter(this, void 0, void 0, function* () {
this.timeout(30000);
// Clean up before every single test
yield Promise.all([
controllerSetup.clearDBDir(),
controllerSetup.clearLogDir(),
dbConnection.writeDB(objectsBackup, statesBackup),
]);
// Create a new test harness
harness = new harness_1.TestHarness(adapterDir, testDir);
// Enable the adapter and set its loglevel to debug
yield harness.changeAdapterConfig(appName, testDir, adapterName, {
common: {
enabled: true,
loglevel: "debug",
},
});
// Start the controller instance
yield harness.startController();
// And enable the sendTo emulation
yield harness.enableSendTo();
});
// Start the controller instance
yield harness.startController();
// And enable the sendTo emulation
yield harness.enableSendTo();
}));
});
afterEach(function () {
return __awaiter(this, void 0, void 0, function* () {
// Stopping the processes may take a while
this.timeout(10000);
this.timeout(30000);
// Stop the controller again

@@ -96,0 +99,0 @@ yield harness.stopController();

{
"name": "@iobroker/testing",
"version": "1.1.10",
"version": "1.1.11",
"description": "Shared utilities for adapter and module testing in ioBroker",

@@ -5,0 +5,0 @@ "main": "build/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc