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 14:50:36 -07:00
2026-07-17 23:23:21 +01:00
2026-07-17 23:23:21 +01:00
2026-07-17 23:23:21 +01:00
2026-07-17 23:23:21 +01:00
2026-07-17 23:23:21 +01:00
2026-07-17 23:23:21 +01:00
2026-07-17 23:23:21 +01:00
2026-07-17 23:23:21 +01:00
2026-07-17 23:23:21 +01:00
2026-06-14 09:11:05 -07:00
2026-06-14 09:11:05 -07:00
2026-07-11 09:18:39 -07:00
2026-07-13 22:26:02 -07:00
2026-07-06 00:15:32 +01:00
2026-07-13 22:26:02 -07:00
2026-07-04 12:03:34 -04:00
2026-07-13 22:26:02 -07:00
2026-07-11 18:31:05 -07:00
2026-07-11 18:31:05 -07:00
2026-07-13 01:51:32 -07:00
2026-07-13 01:51:32 -07:00
2026-07-11 18:31:05 -07:00
2026-07-11 18:31:05 -07:00
2026-07-13 13:37:21 -07:00
2026-07-14 09:27:02 -07:00
2026-07-13 13:37:21 -07:00
2026-07-17 00:56:46 -07:00
2026-07-12 22:58:22 -07:00
2026-07-17 22:24:17 +01:00
2026-06-19 22:55:38 +08:00
2026-07-12 22:58:22 -07:00
2026-07-17 23:23:21 +01:00
2026-07-10 22:29:37 -05:00
2026-07-13 13:37:21 -07:00
2026-07-13 13:37:21 -07:00
2026-07-17 23:23:21 +01:00
2026-07-12 12:18:50 -07:00
2026-07-11 09:51:02 -07:00
2026-07-17 23:23:21 +01:00
2026-07-17 23:23:21 +01:00
2026-07-17 23:23:21 +01:00
2026-07-16 13:38:44 -07:00
2026-07-13 17:07:41 -07:00
2026-07-15 23:20:20 -07:00
2026-07-15 23:20:20 -07:00
2026-07-13 17:07:41 -07:00
2026-07-17 23:23:21 +01:00
2026-07-17 23:23:21 +01:00
2026-07-13 13:37:21 -07:00
2026-07-13 01:51:32 -07:00
2026-07-13 13:37:21 -07:00
2026-07-13 13:37:21 -07:00
2026-07-10 22:29:13 -07:00
2026-07-12 22:58:22 -07:00
2026-07-18 00:55:46 +01:00
2026-07-08 23:53:19 -07:00
2026-07-13 17:07:41 -07:00
2026-07-13 17:07:41 -07:00
2026-07-16 17:16:01 -07:00
2026-07-17 23:23:21 +01:00
2026-07-17 23:23:21 +01:00
2026-07-12 17:52:53 +01:00
2026-07-12 17:52:53 +01:00
2026-07-11 09:18:39 -07:00
2026-07-11 09:18:39 -07:00
2026-07-13 13:37:21 -07:00
2026-07-13 13:37:21 -07:00
2026-07-14 02:25:37 -07:00
2026-07-14 02:25:37 -07:00
2026-07-13 23:56:35 -07:00
2026-07-14 18:30:04 -07:00
2026-07-17 23:23:21 +01:00
2026-07-07 22:39:20 -07:00
2026-07-04 03:14:13 -07:00
2026-07-12 09:17:31 +01:00
2026-07-11 09:18:39 -07:00
2026-07-14 09:27:02 -07:00
2026-07-17 00:56:46 -07:00
2026-07-17 23:23:21 +01:00
2026-07-07 22:39:20 -07:00
2026-07-06 00:15:32 +01:00
2026-07-17 23:23:21 +01:00
2026-07-12 22:58:22 -07:00
2026-07-18 01:17:11 +01:00
2026-07-18 01:17:11 +01:00
2026-07-13 13:37:21 -07:00
2026-07-13 13:37:21 -07:00
2026-07-11 09:18:39 -07:00
2026-07-12 22:58:22 -07:00
2026-07-11 09:18:39 -07:00
2026-07-17 00:56:46 -07:00
2026-07-15 04:15:23 -07:00
2026-07-14 09:27:02 -07:00
2026-06-28 12:14:35 -07:00
2026-07-10 04:05:23 +01:00
2026-07-11 09:18:39 -07:00
2026-07-12 18:21:11 +08:00
2026-07-11 09:18:39 -07:00
2026-07-17 23:23:21 +01:00
2026-07-17 23:23:21 +01:00
2026-07-16 14:50:36 -07:00
2026-07-16 14:50:36 -07:00
2026-07-17 22:24:17 +01:00
2026-07-17 22:24:17 +01:00
2026-07-17 22:24:17 +01:00
2026-07-13 13:37:21 -07:00
2026-07-13 13:37:21 -07:00
2026-07-13 17:07:41 -07:00
2026-07-13 17:07:41 -07:00
2026-07-13 17:07:41 -07:00
2026-07-13 17:07:41 -07:00
2026-07-15 17:43:26 -07:00
2026-07-17 01:12:18 -07:00
2026-07-16 07:17:01 -07:00
2026-07-14 09:27:02 -07:00
2026-07-10 23:52:35 +01:00
2026-07-13 13:37:21 -07:00
2026-07-17 23:23:21 +01:00
2026-07-05 01:48:57 -07:00
2026-07-17 23:23:21 +01:00
2026-07-16 13:38:44 -07:00
2026-07-13 13:37:21 -07:00
2026-07-08 23:53:19 -07:00
2026-07-17 23:23:21 +01:00
2026-07-17 23:23:21 +01:00
2026-07-17 23:23:21 +01:00
2026-07-17 23:23:21 +01:00
2026-07-17 22:24:17 +01:00
2026-07-17 23:23:21 +01:00
2026-07-17 23:23:21 +01:00
2026-06-22 15:07:07 +08:00
2026-06-22 15:07:07 +08:00
2026-07-11 18:15:03 -07:00
2026-07-13 13:37:21 -07:00
2026-07-13 13:37:21 -07:00
2026-07-10 06:37:57 +01:00
2026-07-12 22:58:22 -07:00
2026-07-12 22:58:22 -07:00
2026-07-09 15:56:52 +01:00
2026-07-09 15:56:52 +01:00
2026-07-09 15:56:52 +01:00
2026-07-09 15:56:52 +01:00
2026-07-04 21:36:53 -04:00
2026-06-24 19:30:29 +08:00
2026-06-24 19:30:29 +08:00
2026-07-04 14:49:43 -04:00