Repository navigation
Commit 8663f7c
test(bun): Restore @sentry/core spies after the Bun.serve tests
bunserver.test.ts replaces startSpanManual, continueTrace and
captureException of @sentry/core and never restores them. In Bun the
spies stay for every later test file in the same process, so when
bunHttpServer.test.ts runs next, its handler gets no active span.
The test file order of bun test follows the directory listing. On GitHub
runners bunRuntimeMetrics.test.ts ran in between and its
jest.restoreAllMocks() removed the spies; on Namespace runners it does
not.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent c20e4f2 commit 8663f7c
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
56 | 63 | | |
57 | 64 | | |
58 | 65 | | |
| |||
0 commit comments