Skip to content

Conversation

@aryamohanan
Copy link
Contributor

@aryamohanan aryamohanan commented Sep 22, 2025

Migrate test setup files from node-fetch-v2 to the native fetch API available in Node.js 18+. This change removes the dependency on node-fetch-v2 in the test code and uses the built-in fetch implementation instead.

Note:
This update replaces all usages of node-fetch-v2 in the test setup.

Background:

@aryamohanan aryamohanan self-assigned this Sep 25, 2025
@aryamohanan aryamohanan force-pushed the test-node-fetch branch 2 times, most recently from 8ae3d4d to 9b3dec7 Compare September 30, 2025 11:25
@kirrg001
Copy link
Contributor

kirrg001 commented Oct 2, 2025

https://jsw.ibm.com/browse/INSTA-15850

@aryamohanan aryamohanan marked this pull request as ready for review January 2, 2026 09:18
@aryamohanan aryamohanan requested a review from a team as a code owner January 2, 2026 09:18
@aryamohanan aryamohanan removed the WIP label Jan 2, 2026
@abhilash-sivan
Copy link
Contributor

I believe this also needs to be removed!

@aryamohanan
Copy link
Contributor Author

aryamohanan commented Jan 7, 2026

I believe this also needs to be removed!

@abhilash-sivan IMO, this is not part of the test setup code. It is a minimal test application (metrics-test-app) that exists solely to be test the metrics collection.

The purpose of the test is to verify that when this application runs with node-fetch as a dependency, the metrics system reports it correctly. Therefore, this dependency is not related to test setup and does not need to be replaced or removed the test explicitly requires an external dependency to validate the behavior.

Copy link
Contributor

@abhilash-sivan abhilash-sivan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@kirrg001 kirrg001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments 👍

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants