-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove test utilities and dependency from package
The SDK unit test helpers, which relied on test-scoped dependency "expect", have been removed from the package. They will be exposed through a new NPM package, separate from this one. The intention is to decouple testing logic from production logic. This package, which is scoped for production, will no longer contain the "expect" dependency, which has caused issues for users. SDK projects will need to install the new package as a development dependency and update their test code to use it instead. The functionality will all remain the same. This new package is still included in this project but it will not be built and published as a part of public API. Instead, it will be isolated and self-contained, with its own package.json, etc. For now, it will be published manually - semantic release will only be used to automate publishing of the core. BREAKING CHANGE: SDK test helpers are no longer exposed in this package. To continue using the test helpers, which SDK unit tests still rely on, install the new "@ibm-cloud/sdk-test-utilities" package as a development dependency. Signed-off-by: Dustin Popp <[email protected]>
- Loading branch information
Showing
15 changed files
with
634 additions
and
297 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -27,3 +27,6 @@ dist/ | |
temp/ | ||
build/ | ||
es/tsdoc-metadata.json | ||
|
||
# For sub-package with test utilities | ||
!sdk-test-utilities/index.js |
This file contains 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 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 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,15 @@ | ||
# Migration Guide for v5 | ||
|
||
## Breaking Changes | ||
|
||
### Node Version | ||
Node version 16 is no longer supported - 18 is the minimum version supported. | ||
|
||
### SDK Unit Test Helpers | ||
The formerly available helper functions exposed in this package have been removed. These | ||
functions were intended for use in the unit tests of a generated SDK project. | ||
|
||
The functions are now present in a new package called `@ibm-cloud/sdk-test-utilities`. | ||
To continue using the helper functions in SDK test code, install this new package as a | ||
development dependency and import the functions from there. The interface and functions | ||
remain completely identical to the functions formerly exposed in this package. |
This file contains 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 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 was deleted.
Oops, something went wrong.
Oops, something went wrong.