-
Notifications
You must be signed in to change notification settings - Fork 617
Update dependency jest-when to v4 #8563
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| --- | ||
| '@backstage-community/plugin-kafka-backend': patch | ||
| '@backstage-community/plugin-kafka': patch | ||
| --- | ||
|
|
||
| Updated dependency `jest-when` to `^4.0.0`. |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -72,7 +72,7 @@ | |||
| "@types/jest-when": "^3.5.0", | ||||
|
||||
| "@types/jest-when": "^3.5.0", |
Copilot
AI
Apr 16, 2026
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.
Now that jest-when is on v4 (authored in TypeScript and typically ships its own .d.ts), keeping @types/jest-when (v3.x) in devDependencies is likely redundant and can cause confusion or type conflicts. Consider removing @types/jest-when and relying on the bundled types from jest-when v4 (updating the lockfile accordingly).
Copilot
AI
Apr 17, 2026
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.
jest-when v4 is authored in TypeScript and ships its own typings; keeping @types/jest-when (which targets the older v3 API/types) can cause TypeScript to pick up incompatible/duplicate declarations. Remove @types/jest-when from devDependencies (and regenerate the lockfile) so the project uses the bundled types from jest-when.
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.
jest-whenv4 ships its own TypeScript types, but this package still includes@types/jest-when(which targets the pre-v4 typings). Keeping both can lead to stale/incorrect type resolution in some TS setups and is generally redundant—consider removing@types/jest-whenfromdevDependenciesnow thatjest-whenprovides types.