Skip to content

feat: expose user field on transactions#268

Open
zivl wants to merge 1 commit intomasterfrom
feat/expose-user-on-transactions
Open

feat: expose user field on transactions#268
zivl wants to merge 1 commit intomasterfrom
feat/expose-user-on-transactions

Conversation

@zivl
Copy link
Copy Markdown
Owner

@zivl zivl commented Mar 29, 2026

Summary

  • Add user?: User to the Transaction interface in types.ts
  • Map item.user in transformTransaction() in transformers.ts
  • Add test 'should expose user on transaction' in commonTests.ts

This makes user context accessible via testkit.transactions()[i].user, consistent with the existing testkit.reports()[i].user behavior.

Closes #265

Test plan

  • yarn workspace sentry-testkit test — all existing tests pass + new 'should expose user on transaction' test passes

🤖 Generated with Claude Code

Add `user` to the `Transaction` interface and map it in `transformTransaction()`,
so callers can assert on user context via `testkit.transactions()[i].user`,
consistent with how `testkit.reports()[i].user` already works.

Closes #265
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.

[Feature Request]: expose user on testkit.transactions()

1 participant