@iobroker/testing version 5.1.1 now includes many test dependencies that were previously required to be manually added to adapter projects. This update allows you to clean up your package.json file by removing redundant dependencies.
Update the @iobroker/testing version in your package.json devDependencies:
"devDependencies": {
- "@iobroker/testing": "^4.1.3",
+ "@iobroker/testing": "^5.1.1",
// ... other dependencies
},The following dependencies can now be removed from your package.json devDependencies since they are included in @iobroker/testing 5.1.1:
"devDependencies": {
- "chai": "^4.5.0",
- "chai-as-promised": "^7.1.2",
- "mocha": "^11.7.1",
- "sinon": "^19.0.5",
- "sinon-chai": "^3.7.0",
- "proxyquire": "^2.1.3",
// ... other dependencies
}, "devDependencies": {
- "@types/chai": "^4.3.20",
- "@types/chai-as-promised": "^8.0.2",
- "@types/mocha": "^10.0.10",
- "@types/sinon": "^17.0.4",
- "@types/sinon-chai": "^3.2.12",
- "@types/proxyquire": "^1.3.31",
// ... other dependencies
},After making these changes:
- Delete your
node_modulesfolder andpackage-lock.jsonfile - Run
npm installto reinstall dependencies with the updated versions - Run
npm testto verify everything still works correctly
All testing functionality remains unchanged as the dependencies are now provided by @iobroker/testing 5.1.1.