You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3e02739
Browse filesBrowse the repository at this point in the historyBrowse files
test(nextjs): Switch DEBUG_BUILD with a getter instead of re-importing the SDK (#25279)
`conflictingDebugOptions.test.ts` now mocks `DEBUG_BUILD` one time, with
a getter over a `vi.hoisted` value, and it imports the client, server
and edge entry points one time. Before, each test called `vi.doMock` and
`vi.resetModules` and imported all three entry points again, and
`beforeAll` "pre-warmed" them one more time.
## Why
Under CI load, evaluating the three module graphs again took longer than
the 10 s hook timeout. Now the two tests take a few milliseconds (25 ms
and 6 ms locally, 1.68 s before). The "vi.unmock is not at the top
level" warning is also gone.
Failed on CI:
https://github.com/getsentry/sentry-javascript/actions/runs/38034725173/job/114166137692
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments