@iobroker/testing
Advanced tools
Comparing version 1.1.10 to 1.1.11
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
148119
3117