-
Notifications
You must be signed in to change notification settings - Fork 28
Upgrade to @iobroker/testing 5.1.1, remove redundant dependencies, and integrate template tests in main test suite #1166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
884e6d4
Initial plan
Copilot e284c42
Remove redundant test dependencies now included in @iobroker/testing …
Copilot dd0f309
Upgrade @iobroker/testing dependency to 5.1.1
Copilot 727afaf
Add test:templates script to include template creation test in main t…
Copilot da67959
Add migration file and changelog entry for @iobroker/testing 5.1.1 up…
Copilot 939d94f
Remove duplicate template creation test from CI workflow
Copilot ebf74cb
Remove creator-internal references from changelog and migration guide
Copilot 8a597b1
Remove version specification from @iobroker/testing dependency in tem…
Copilot fccb4bd
Merge branch 'master' into copilot/fix-1165
Apollon77 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| # Upgrade to @iobroker/testing 5.1.1 and remove redundant dependencies | ||
|
|
||
| @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 @iobroker/testing version | ||
|
|
||
| Update the @iobroker/testing version in your `package.json` devDependencies: | ||
|
|
||
| ```diff | ||
| "devDependencies": { | ||
| - "@iobroker/testing": "^4.1.3", | ||
| + "@iobroker/testing": "^5.1.1", | ||
| // ... other dependencies | ||
| }, | ||
| ``` | ||
|
|
||
| ## Remove redundant test dependencies | ||
|
|
||
| The following dependencies can now be removed from your `package.json` devDependencies since they are included in `@iobroker/testing` 5.1.1: | ||
|
|
||
| ### Runtime test dependencies: | ||
| ```diff | ||
| "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 | ||
| }, | ||
| ``` | ||
|
|
||
| ### Type definitions: | ||
| ```diff | ||
| "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 the changes | ||
|
|
||
| After making these changes: | ||
|
|
||
| 1. Delete your `node_modules` folder and `package-lock.json` file | ||
| 2. Run `npm install` to reinstall dependencies with the updated versions | ||
| 3. Run `npm test` to verify everything still works correctly | ||
|
|
||
| All testing functionality remains unchanged as the dependencies are now provided by `@iobroker/testing` 5.1.1. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot No need to specify the exact version here, this should automatically be resolved to the latest available which is ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the exact version specification from @iobroker/testing dependency. It now automatically resolves to the latest available version. Commit 8a597b1.