Skip to content

fix(express): Make tests match new route name extraction behavior #3103

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

Merged
merged 1 commit into from
Dec 7, 2020

Conversation

lobsterkatie
Copy link
Member

This change made it so we always prefer the parameterized path if it's available. This fixes the tests to match that expectation.

It also renames extractRouteInfo to extractExpressTransactionName, to better reflect its return values and usage, and adds a bunch of typecasts to the tests so TS can stop stressing. (Our mock request is missing many of http.IncomingMessage's less interesting properties. We're not testing them, though, so we don't care.)

@github-actions
Copy link
Contributor

github-actions bot commented Dec 4, 2020

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 19.73 KB (+0.01% 🔺)
@sentry/browser - Webpack 20.6 KB (0%)
@sentry/react - Webpack 20.6 KB (0%)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 26.88 KB (+0.01% 🔺)

@HazAT HazAT merged commit 322028f into master Dec 7, 2020
@HazAT HazAT deleted the kmclb-fix-parserequest-tests branch December 7, 2020 09:11
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.

2 participants