Commit a1213f9
committed
fix: replace mock.module with spyOn for logger in timeline-formatting tests
mock.module() globally replaces the logger module for ALL test files
running in the same Bun process, causing logger.formatTool to be
undefined in logger-format-tool.test.ts. Using spyOn instead keeps
the real Logger instance and only stubs individual methods.
This was the root cause of the recurring CI-only test failure —
mock.module poisoned the module cache across parallel test files.1 parent e0b3352 commit a1213f9
3 files changed
Lines changed: 4 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | 126 | | |
143 | 127 | | |
144 | 128 | | |
| |||
170 | 154 | | |
171 | 155 | | |
172 | 156 | | |
173 | | - | |
| 157 | + | |
174 | 158 | | |
175 | 159 | | |
176 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | 175 | | |
195 | 176 | | |
196 | 177 | | |
| |||
222 | 203 | | |
223 | 204 | | |
224 | 205 | | |
225 | | - | |
| 206 | + | |
226 | 207 | | |
227 | 208 | | |
228 | 209 | | |
| |||
Binary file not shown.
0 commit comments