Peter Steinberger
13c0e7492a
fix(test): converge Slack harness state across module reloads ( #110255 )
...
* fix(test): converge Slack harness state across module reloads
Five reaction tests in monitor.tool-result.test.ts failed whenever a sibling
file's vi.resetModules() ran earlier in the same non-isolated worker: the
cached globalThis __slackClient kept routing reactions to the OLD test-helpers
module's mocks while tests asserted on the recreated module's fresh mocks —
reactions 'never fired' (replies survived via freshly injected runtime).
slackTestState is now a globalThis-backed singleton so every module
incarnation and the cached client share one state object. Also: reaction
assertions wait on the mock (reactions apply via detached debounce/queue
work), and stale Bolt handler registrations clear per test/stop so
waitForSlackEvent cannot match a previous provider's handler. Proven with six
consecutive full extensions/slack runs (was ~50% failure).
* style(slack): bracket global test-state access for underscore lint
2026-07-18 01:17:11 +01:00
..
2026-07-16 21:21:04 -07:00
2026-07-16 21:19:11 -07:00
2026-07-17 01:09:29 -07:00
2026-07-15 16:23:47 -07:00
2026-07-17 23:59:57 +01:00
2026-07-16 11:33:18 -07:00
2026-07-16 16:47:25 -07:00
2026-07-16 13:55:23 -07:00
2026-07-16 13:55:23 -07:00
2026-07-14 12:00:55 -07:00
2026-07-18 01:00:23 +01:00
2026-07-16 16:47:25 -07:00
2026-07-17 23:05:16 +01:00
2026-07-16 16:47:25 -07:00
2026-07-17 01:11:11 -07:00
2026-07-16 23:16:25 -07:00
2026-07-17 10:22:09 +01:00
2026-07-15 17:05:21 -07:00
2026-07-17 16:45:57 -07:00
2026-07-15 16:23:47 -07:00
2026-07-16 13:55:23 -07:00
2026-07-16 21:06:40 -07:00
2026-07-16 16:47:25 -07:00
2026-07-14 14:15:44 -07:00
2026-07-16 13:55:23 -07:00
2026-07-16 16:47:25 -07:00
2026-07-16 13:55:23 -07:00
2026-07-15 03:32:15 -07:00
2026-07-18 06:23:49 +10:00
2026-07-18 06:23:49 +10:00
2026-07-16 16:47:19 -07:00
2026-07-18 00:24:40 +01:00
2026-07-16 13:55:23 -07:00
2026-07-15 18:18:23 -07:00
2026-07-16 13:55:23 -07:00
2026-07-18 00:55:46 +01:00
2026-07-16 22:22:01 -07:00
2026-07-16 16:47:25 -07:00
2026-07-17 14:44:03 +01:00
2026-07-16 16:47:25 -07:00
2026-07-17 23:50:30 +01:00
2026-07-17 01:12:18 -07:00
2026-07-16 13:55:23 -07:00
2026-07-16 21:54:17 -07:00
2026-07-18 00:55:46 +01:00
2026-07-16 13:55:23 -07:00
2026-07-17 13:43:12 +01:00
2026-07-16 16:47:25 -07:00
2026-07-16 22:41:03 -07:00
2026-07-17 20:56:17 +01:00
2026-07-14 18:00:16 -07:00
2026-07-15 00:16:39 -07:00
2026-07-17 16:36:05 -07:00
2026-07-17 01:12:23 -07:00
2026-07-16 01:45:06 -07:00
2026-07-18 00:55:46 +01:00
2026-07-18 00:55:46 +01:00
2026-07-17 12:40:00 -07:00
2026-07-16 21:35:44 -07:00
2026-07-17 14:24:13 +01:00
2026-07-16 13:55:23 -07:00
2026-07-17 00:56:46 -07:00
2026-07-16 11:10:59 -07:00
2026-07-16 12:56:43 -07:00
2026-07-16 16:47:25 -07:00
2026-07-16 16:47:25 -07:00
2026-07-16 13:55:23 -07:00
2026-07-16 22:41:03 -07:00
2026-07-18 00:55:46 +01:00
2026-07-17 00:56:46 -07:00
2026-07-17 00:56:46 -07:00
2026-07-16 16:47:25 -07:00
2026-07-16 02:11:39 -07:00
2026-07-17 11:38:21 +01:00
2026-07-16 09:15:03 -07:00
2026-07-17 23:14:15 +01:00
2026-07-16 21:10:18 -07:00
2026-07-15 04:15:23 -07:00
2026-07-16 16:47:25 -07:00
2026-07-14 15:38:39 -07:00
2026-07-18 00:11:45 +01:00
2026-07-18 00:36:08 +01:00
2026-07-15 17:05:21 -07:00
2026-07-15 22:40:00 -07:00
2026-07-18 00:55:46 +01:00
2026-07-17 16:45:57 -07:00
2026-07-15 16:23:47 -07:00
2026-07-18 00:55:46 +01:00
2026-07-16 16:47:25 -07:00
2026-07-17 00:56:46 -07:00
2026-07-17 22:24:33 +01:00
2026-07-16 13:55:23 -07:00
2026-07-18 00:55:46 +01:00
2026-07-18 01:17:11 +01:00
2026-07-17 11:11:13 +01:00
2026-07-17 00:56:46 -07:00
2026-07-16 16:47:25 -07:00
2026-07-15 17:05:21 -07:00
2026-07-17 14:36:12 +01:00
2026-07-18 00:55:46 +01:00
2026-07-15 16:23:47 -07:00
2026-07-16 13:55:23 -07:00
2026-07-17 00:56:46 -07:00
2026-07-16 16:47:25 -07:00
2026-07-14 11:00:31 -07:00
2026-07-17 00:56:46 -07:00
2026-07-16 04:02:44 -07:00
2026-07-16 16:47:25 -07:00
2026-07-15 16:36:30 -07:00
2026-07-17 01:44:43 -07:00
2026-07-16 16:47:25 -07:00
2026-07-15 18:18:23 -07:00
2026-07-16 13:55:23 -07:00
2026-07-16 23:56:59 -07:00
2026-07-18 00:55:46 +01:00
2026-07-16 04:10:27 -07:00
2026-07-16 21:56:57 -07:00
2026-07-17 00:28:13 -07:00
2026-07-16 16:47:25 -07:00
2026-07-16 22:41:03 -07:00
2026-07-17 00:56:46 -07:00
2026-07-17 00:56:46 -07:00
2026-07-16 13:55:23 -07:00
2026-07-16 13:55:23 -07:00
2026-07-16 13:55:23 -07:00