Skip to content

cacheable-request - chore: fixing tests with parse deprecation#1600

Merged
jaredwray merged 1 commit intomainfrom
cacheable-request---chore-fixing-tests-with-parse-deprecation
Mar 18, 2026
Merged

cacheable-request - chore: fixing tests with parse deprecation#1600
jaredwray merged 1 commit intomainfrom
cacheable-request---chore-fixing-tests-with-parse-deprecation

Conversation

@jaredwray
Copy link
Owner

@jaredwray jaredwray commented Mar 18, 2026

Please check if the PR fulfills these requirements

  • Followed the Contributing guidelines and Code of Conduct
  • Tests for the changes have been added (for bug fixes/features) with 100% code coverage.

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
cacheable-request - chore: fixing tests with parse deprecation

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on modernizing the test suite by addressing the deprecation of url.parse in Node.js. The changes involve updating URL parsing logic within tests to use the parseWithWhatwg utility and the global URL constructor, ensuring compatibility and adherence to current best practices without altering core functionality.

Highlights

  • Deprecation Handling: Updated test files to replace the deprecated url.parse function with parseWithWhatwg for URL parsing, aligning with modern Node.js practices.
  • URL Constructor Usage: Migrated instances of new url.URL() to the global new URL() constructor in test files, further embracing the WHATWG URL standard.
  • Import Optimization: Removed the explicit import of the node:url module from test files as its functions are no longer directly used.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request addresses the deprecation of url.parse in Node.js by replacing its usage in test files with a new parseWithWhatwg helper function. The changes are consistent across all test files, correctly removing the node:url import and using the new helper. The usage of new url.URL has also been updated to use the global URL constructor. The changes are straightforward and correctly implemented to resolve the deprecation warnings in the test suite.

@codecov
Copy link

codecov bot commented Mar 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (c961eac) to head (6065d83).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1600   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           26        26           
  Lines         2473      2473           
  Branches       559       558    -1     
=========================================
  Hits          2473      2473           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jaredwray jaredwray merged commit d94557a into main Mar 18, 2026
10 checks passed
@jaredwray jaredwray deleted the cacheable-request---chore-fixing-tests-with-parse-deprecation branch March 18, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant