Skip to content

Conversation

@lisez
Copy link
Contributor

@lisez lisez commented Jul 17, 2025

This relates to...

fix #4342

Rationale

Changes

MockAgent.prototype.get now respect the ignoreTrailingSlash option.

Features

Bug Fixes

Breaking Changes and Deprecations

Status

Copy link
Collaborator

@Ethan-Arrowood Ethan-Arrowood left a comment

Choose a reason for hiding this comment

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

LGTM with some minor nits about seemingly unrelated formatting and test changes.

/* global describe, it, afterEach, expect */

describe('MockAgent', () => {
describe('smoking test in jest', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this should be renamed

Comment on lines 25 to 29
const {
matchValue,
normalizeSearchParams,
buildAndValidateMockOptions
} = require('./mock-utils')
Copy link
Collaborator

Choose a reason for hiding this comment

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

There looks to be some formatting changes included in here. Is this actually from the formatter in the repo or something else?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It might be my editor. My neovim config includes auto-formatting with prettier and eslint.

Copy link
Member

@metcoder95 metcoder95 left a comment

Choose a reason for hiding this comment

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

lgtm with Ethan comments

@lisez
Copy link
Contributor Author

lisez commented Jul 18, 2025

@Ethan-Arrowood @metcoder95 All done.

@metcoder95 metcoder95 merged commit 6c79e0a into nodejs:main Jul 20, 2025
27 of 28 checks passed
@lisez lisez deleted the ignoring-trailing-slash-mock-agent branch July 20, 2025 11:30
@github-actions github-actions bot mentioned this pull request Jul 31, 2025
@JoshMock JoshMock mentioned this pull request Aug 7, 2025
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.

Ignoring trailing slash in MockAgent.prototype.get

3 participants