Skip to content

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

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 10 commits into from
Jan 25, 2023

Conversation

onurtemizkan
Copy link
Collaborator

@onurtemizkan onurtemizkan commented Jan 23, 2023

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
Collaborator Author

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
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
Copy link
Contributor

github-actions bot commented Jan 23, 2023

size-limit report 📦

Path Size
@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 onurtemizkan force-pushed the onur/nextjs-new-server-integration-tests branch 3 times, most recently from 7abc57f to 5fb8ac2 Compare January 24, 2023 11:19
@onurtemizkan onurtemizkan force-pushed the onur/nextjs-new-server-integration-tests branch 2 times, most recently from 2ecc14b to e6b9f4d Compare January 25, 2023 11:53
@onurtemizkan onurtemizkan force-pushed the onur/nextjs-new-server-integration-tests branch from e6b9f4d to be99114 Compare January 25, 2023 12:28
@onurtemizkan onurtemizkan requested review from AbhiPrasad and lforst and removed request for AbhiPrasad January 25, 2023 12:52
@onurtemizkan onurtemizkan marked this pull request as ready for review January 25, 2023 12:53
@onurtemizkan onurtemizkan self-assigned this Jan 25, 2023
@lforst
Copy link
Contributor

lforst commented Jan 25, 2023

Thanks Onur!

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