Commit 11184ea
fix(web): mock @sourcebot/shared in utils.test.ts to fix server env error
The test was failing because importing utils.ts transitively pulled in
server-side environment variables via createLogger, which crashes in
the jsdom test environment.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 825781f commit 11184ea
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
2 | 12 | | |
3 | 13 | | |
4 | 14 | | |
| |||
0 commit comments