José Almeida
9ed3e64a91
test(web): hoist test constants above vi.mock factories
...
Move SESSION_ID and friends above the vi.mock factories so the mock
closures don't depend on vitest hoisting magic capturing TDZ-undefined
locals. The previous layout worked because factories aren't invoked
until the module under test is imported (after const initialization),
but a refactor that imports earlier would break the closure silently.
2026-05-07 11:17:24 +01:00
..
2026-04-20 18:52:45 +01:00
2026-05-04 21:11:22 +01:00
2026-05-04 21:11:22 +01:00
2026-05-01 23:50:05 +01:00
2026-05-01 13:27:25 +01:00
2026-04-18 10:32:24 +01:00
2026-04-28 22:23:14 +01:00
2026-05-02 20:26:42 +01:00
2026-05-02 20:26:42 +01:00
2026-05-02 20:26:42 +01:00
2026-05-02 20:26:42 +01:00
2026-05-02 20:26:42 +01:00
2026-05-02 20:26:42 +01:00
2026-05-04 17:28:04 +01:00
2026-05-04 17:28:04 +01:00
2026-05-04 17:28:04 +01:00
2026-05-02 20:26:42 +01:00
2026-05-01 21:02:41 +01:00
2026-05-02 20:26:42 +01:00
2026-05-02 20:26:42 +01:00
2026-05-02 20:26:42 +01:00
2026-05-02 20:26:42 +01:00
2026-05-04 18:53:33 +01:00
2026-05-04 18:53:33 +01:00
2026-04-28 22:23:14 +01:00
2026-05-01 22:32:28 +01:00
2026-05-02 20:26:42 +01:00
2026-05-04 18:53:33 +01:00
2026-05-04 18:53:33 +01:00
2026-05-02 15:19:02 +01:00
2026-05-03 17:32:29 +01:00
2026-05-02 15:19:02 +01:00
2026-05-07 00:49:43 +01:00
2026-05-04 21:10:32 +01:00
2026-05-04 21:10:32 +01:00
2026-05-07 00:44:44 +01:00
2026-05-07 11:17:24 +01:00
2026-05-07 00:49:43 +01:00
2026-05-04 18:53:33 +01:00
2026-04-09 12:49:47 +01:00
2026-04-11 17:43:21 +01:00
2026-04-25 21:42:59 +01:00
2026-04-11 17:43:21 +01:00
2026-04-11 17:43:21 +01:00
2026-04-11 17:43:21 +01:00
2026-04-11 17:43:21 +01:00
2026-04-24 21:31:46 +01:00
2026-04-24 21:31:46 +01:00
2026-05-04 21:09:39 +01:00
2026-05-01 11:00:33 +01:00
2026-04-20 13:44:24 +01:00
2026-05-01 22:32:28 +01:00
2026-05-01 21:02:41 +01:00
2026-05-04 21:10:32 +01:00
2026-04-25 18:21:33 +01:00
2026-04-25 18:21:33 +01:00
2026-05-01 18:01:17 +01:00
2026-05-01 21:02:41 +01:00
2026-05-01 21:02:41 +01:00
2026-05-02 22:25:40 +01:00
2026-05-02 22:25:40 +01:00
2026-05-02 22:25:40 +01:00
2026-05-02 22:25:40 +01:00
2026-05-02 22:25:40 +01:00
2026-05-02 22:25:40 +01:00
2026-05-04 21:11:22 +01:00
2026-05-05 21:20:05 +01:00
2026-04-25 18:40:31 +01:00
2026-05-01 11:00:33 +01:00
2026-04-20 22:31:09 +01:00
2026-04-20 22:31:09 +01:00
2026-05-03 17:32:29 +01:00
2026-05-01 11:00:33 +01:00
2026-05-04 21:10:32 +01:00
2026-04-20 13:44:24 +01:00
2026-04-17 23:20:10 +01:00
2026-04-17 16:46:08 +01:00
2026-05-02 20:26:42 +01:00
2026-05-03 16:15:28 +01:00
2026-04-08 07:55:24 +01:00
2026-04-17 23:20:10 +01:00
2026-05-02 20:26:42 +01:00
2026-05-02 23:01:21 +01:00
2026-05-04 21:11:22 +01:00
2026-05-02 20:26:42 +01:00
2026-05-05 21:20:05 +01:00
2026-04-27 10:22:58 +01:00
2026-04-27 10:22:58 +01:00
2026-04-27 10:22:58 +01:00
2026-04-27 10:22:58 +01:00
2026-04-27 10:22:58 +01:00
2026-04-27 10:22:58 +01:00
2026-05-04 21:09:39 +01:00
2026-05-02 15:19:02 +01:00
2026-04-29 09:56:26 +01:00
2026-05-02 20:26:42 +01:00
2026-05-02 23:01:21 +01:00
2026-04-20 13:44:24 +01:00
2026-05-02 23:01:21 +01:00
2026-05-05 21:20:05 +01:00
2026-05-06 23:43:52 +01:00
2026-05-01 13:27:25 +01:00
2026-04-24 17:14:03 +01:00
2026-05-04 00:53:21 +01:00
2026-05-04 00:53:21 +01:00
2026-05-04 21:10:32 +01:00
2026-05-04 21:10:32 +01:00
2026-04-27 10:22:58 +01:00
2026-05-02 20:26:42 +01:00
2026-04-24 17:14:03 +01:00
2026-04-16 10:14:45 +01:00
2026-05-04 21:10:32 +01:00