-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
test(remix): Add server-side instrumentation integration tests. #5538
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
Conversation
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.
Can we add a test for 5xx
responses?
assertSentryTransaction(transaction, { | ||
spans: [ | ||
{ | ||
description: 'routes/action-json-response/$id', |
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.
We should really think about if we can make this name better.
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.
Maybe something like `${action | loader | documentRequest} of ${route}`?
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.
Yeah I like that, even if the info is a bit redundant
9eebad8
to
3ba64c2
Compare
size-limit report 📦
|
4bd95b7
to
12488fa
Compare
12488fa
to
f29c0f0
Compare
Adds a basic set of tests to ensure
loader
,action
anddocumentRequest
functions are properly instrumented.Also, switches
node-integration-test
utilities to useaxios
to simulate requests, instead ofhttp
package, to easily switch betweenpost
andget
requests.