also looking at this
test: stop leaking mocked module state across test files
#2274
8 files
+77
-67
| @@ -274,6 +274,10 @@ describe('SiteSupervisor', () => { | ||
| 274 | 274 | probePort: async () => false, |
| 275 | 275 | pollIntervalMs: 5, |
| 276 | 276 | }) |
| 277 | // Registered before the first await that can reject: the only one of these | |
| 278 | // eight supervisors the afterEach could not reach, so its 30s reaper and | |
| 279 | // readiness loop outlived a failing run (#2271). | |
| 280 | supervisors.push(sup) | |
| 277 | 281 | await sup.onRequest('myapp.localhost') |
| 278 | 282 | await sup.stopAll() |
| 279 | 283 | expect(proc.signals).toContain('SIGTERM') |