Repository navigation
Commit 21a981f
authored
fix(test): stub NODE_ENV in the chat utils tests instead of replacing process (#10597)
The test replaced the global process with a spread copy, which drops
EventEmitter methods such as process.on. Since #10593 added the Blacksmith
vitest plugin in CI (GITHUB_ACTIONS=true), the run calls process.on during the
file and test shard 2/2 failed with "process.on is not a function". Stub only
the env var, and restore it after each test.1 parent 6c4ea4b commit 21a981f
1 file changed
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
77 | 75 | | |
78 | 76 | | |
79 | 77 | | |
| |||
0 commit comments