Skip to content

Conversation

onurtemizkan
Copy link
Collaborator

Resolves: #959

Copy link

github-actions bot commented Aug 5, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against ca7a0bc

Copy link

codecov bot commented Aug 5, 2025

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 32.39%. Comparing base (3cc1b13) to head (ca7a0bc).

Files with missing lines Patch % Lines
src/sveltekit/sdk-setup/setup.ts 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1055      +/-   ##
==========================================
+ Coverage   32.12%   32.39%   +0.26%     
==========================================
  Files         133      133              
  Lines       15696    15698       +2     
  Branches     1100     1107       +7     
==========================================
+ Hits         5042     5085      +43     
+ Misses      10637    10596      -41     
  Partials       17       17              
Flag Coverage Δ
unit-tests 32.39% <66.66%> (+0.26%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@onurtemizkan onurtemizkan force-pushed the onur/senddefaultpii-sveltekit branch from 9005656 to 7c78ed8 Compare August 12, 2025 13:44
Comment on lines 277 to 285
expect(result).toContain('import * as Sentry from "@sentry/sveltekit";');
expect(result).toContain('dsn: "https://sentry.io/123"');
expect(result).toContain('tracesSampleRate: 1');
expect(result).toContain('replaysSessionSampleRate: 0.1');
expect(result).toContain('replaysOnErrorSampleRate: 1');
expect(result).toContain('enableLogs: true');
expect(result).toContain('sendDefaultPii: true');
expect(result).toContain('integrations: [Sentry.replayIntegration()]');
expect(result).toContain('Sentry.init({');
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for adding the tests, much appreciated! Can we use toMatchInlineSnapshot instead of the infividual contain assertions?
happy to stay with this if there's a good reason for it otherwise

(same q for the other tests below)

@Lms24
Copy link
Member

Lms24 commented Oct 2, 2025

Please also rebase the PR, thanks!

Copy link
Collaborator Author

@Lms24 - Updated 👍

@onurtemizkan onurtemizkan force-pushed the onur/senddefaultpii-sveltekit branch from 7c78ed8 to 46d4b0f Compare October 6, 2025 12:58
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.

Set sendDefaultPii in SvelteKit wizard
2 participants