Skip to content

Conversation

@lobsterkatie
Copy link
Member

This changes the structure of the index.client.ts tests to stop mocking configureScope and @sentry/react's init functions and instead spy on the real versions. This makes the structure of the client tests better match the structure of the server tests, and is also necessary for an upcoming PR in which the behavior of those functions is tested directly (meaning they have to actually do the thing they normally would).

@github-actions
Copy link
Contributor

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 22.47 KB (+0.01% 🔺)
@sentry/browser - Webpack 23.35 KB (0%)
@sentry/react - Webpack 23.38 KB (0%)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 29.92 KB (+0.01% 🔺)

@lobsterkatie lobsterkatie merged commit c29785b into master Oct 27, 2021
@lobsterkatie lobsterkatie deleted the kmclb-nextjs-use-real-functions-in-index-client-tests branch October 27, 2021 14:59
Copy link
Contributor

@iker-barriocanal iker-barriocanal left a comment

Choose a reason for hiding this comment

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

nit: can set the pr type to "test"

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.

4 participants