Skip to content

test(nextjs): Refactor server-side integration tests - #6909

Merged
lforst merged 10 commits into
masterfrom
onur/nextjs-new-server-integration-tests
Jan 25, 2023
Merged

test(nextjs): Refactor server-side integration tests#6909
lforst merged 10 commits into
masterfrom
onur/nextjs-new-server-integration-tests

Conversation

@onurtemizkan

@onurtemizkanonurtemizkan commented Jan 23, 2023

Copy link
Copy Markdown
Contributor

Ref: #6053

  • Rewrote current server-side integration tests, to use utilities from the node-integration-tests package.
  • Added a new next.config template / environment configuration for appDir tests.

// This test asserts that our wrapping of `res.end` doesn't break API routes on Vercel if people call `res.json` or
// `res.send` multiple times in one request handler.
// https://github.com/getsentry/sentry-javascript/issues/6670
it.skip('should not break API routes on Vercel if people call res.json or res.send multiple times in one request handler', async () => {

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

This test randomly fails with ERR_STREAM_WRITE_AFTER_END, not sure if it's the testing environment or the case in #6099 still happens.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah I think this is an actual bug in the SDK

@github-actions

github-actionsBot commented Jan 23, 2023

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize
@sentry/browser - ES5 CDN Bundle (gzipped + minified)19.83 KB (0%)
@sentry/browser - ES5 CDN Bundle (minified)61.48 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified)18.5 KB (0%)
@sentry/browser - ES6 CDN Bundle (minified)54.79 KB (0%)
@sentry/browser - Webpack (gzipped + minified)20.22 KB (0%)
@sentry/browser - Webpack (minified)66.19 KB (0%)
@sentry/react - Webpack (gzipped + minified)20.25 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified)47.54 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified)26.76 KB (+0.01% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified)25.03 KB (-0.01% 🔽)
@sentry/replay ES6 CDN Bundle (gzipped + minified)43.57 KB (-0.01% 🔽)
@sentry/replay - Webpack (gzipped + minified)38.31 KB (0%)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified)60.91 KB (-0.01% 🔽)

@onurtemizkan
onurtemizkanforce-pushed the onur/nextjs-new-server-integration-tests branch 3 times, most recently from 7abc57f to 5fb8ac2CompareJanuary 24, 2023 11:19
@onurtemizkan
onurtemizkanforce-pushed the onur/nextjs-new-server-integration-tests branch 2 times, most recently from 2ecc14b to e6b9f4dCompareJanuary 25, 2023 11:53
@onurtemizkan
onurtemizkanforce-pushed the onur/nextjs-new-server-integration-tests branch from e6b9f4d to be99114CompareJanuary 25, 2023 12:28
@onurtemizkan
onurtemizkan requested review from AbhiPrasad and lforst and removed request for AbhiPrasadJanuary 25, 2023 12:52
@onurtemizkan
onurtemizkan marked this pull request as ready for review January 25, 2023 12:53
@onurtemizkanonurtemizkan mentioned this pull request Jan 25, 2023
5 tasks
@onurtemizkanonurtemizkan self-assigned this Jan 25, 2023
@lforst

Copy link
Copy Markdown
Contributor

Thanks Onur!

@lforstlforst changed the title test(nextjs): New server-side integration tests.test(nextjs): Refactor server-side integration testsJan 25, 2023
@lforst
lforst merged commit d984d7a into masterJan 25, 2023
@lforst
lforst deleted the onur/nextjs-new-server-integration-tests branch January 25, 2023 14:46
Sign up for freeto 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

@onurtemizkan@lforst