Skip to content

Commit ab30932

Browse files
Lms24cursoragent
andcommitted
test: Update source context expectations
Account for the static trace lifecycle option in line-sensitive stack context and source-map assertions. Co-Authored-By: Cursor <cursoragent@cursor.com>
1 parent ea85dde commit ab30932

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

  • dev-packages
    • e2e-tests/test-applications/debug-id-sourcemaps/tests/__snapshots__
    • node-integration-tests/suites/public-api/captureException/catched-error

dev-packages/e2e-tests/test-applications/debug-id-sourcemaps/tests/__snapshots__/server.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ exports[`Find symbolicated event on sentry 1`] = `
44
{
55
"colno": 41,
66
"contextLine": "const eventId = Sentry.captureException(new Error('Sentry Debug ID E2E Test Error'));",
7-
"lineno": 8,
7+
"lineno": 9,
88
"postContext": [
99
"",
1010
"process.stdout.write(eventId);",
1111
],
1212
"preContext": [
13-
"Sentry.init({",
13+
" traceLifecycle: 'static',",
1414
" environment: 'qa', // dynamic sampling bias to keep transactions",
1515
" dsn: process.env.E2E_TEST_DSN,",
1616
"});",

dev-packages/node-integration-tests/suites/public-api/captureException/catched-error/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ test('should work inside catch block', async () => {
2323
expect.objectContaining({
2424
context_line: " throw new Error('catched_error');",
2525
pre_context: [
26-
'Sentry.init({',
26+
" traceLifecycle: 'static',",
2727
" dsn: 'https://public@dsn.ingest.sentry.io/1337',",
2828
" release: '1.0',",
2929
' transport: loggingTransport,',

0 commit comments

Comments
 (0)