Keith Williams and Devin AI
7a6f4b2594
fix: add global CRM services mock to prevent test flakes ( #26716 )
...
* fix: mock CRM services to prevent test flakes in handlePaymentSuccess.test.ts
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* fix: add global CRM services mock to prevent test flakes
The test flakes were caused by the Salesforce CRM service importing @urql/core,
which triggers fetch calls during module loading. These fetch calls remain
pending when the Vitest worker shuts down, causing the error:
'[vitest-worker]: Closing rpc while fetch was pending'
This fix adds a global mock for CrmServiceMap in setupVitest.ts, similar to
how payment services are already mocked. This prevents the Salesforce module
from being loaded during test execution.
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-01-11 18:18:05 +05:30
..
2026-01-09 10:42:23 +00:00
2026-01-06 14:58:46 -03:00
2025-11-04 15:55:09 +00:00
2026-01-11 18:18:05 +05:30
2025-12-31 19:12:28 +00:00
2025-09-24 22:20:49 +09:00
2025-12-26 11:54:30 -03:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2026-01-08 09:07:41 -03:00
2025-09-24 22:20:49 +09:00
2026-01-02 12:47:00 +00:00
2025-12-28 21:29:44 -03:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2026-01-02 12:47:00 +00:00
2025-12-02 02:18:25 +00:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-10-21 20:02:03 +01:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2026-01-08 09:07:41 -03:00
2026-01-08 09:07:41 -03:00
2026-01-08 09:07:41 -03:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2026-01-08 09:07:41 -03:00
2025-10-07 14:42:29 +00:00
2025-10-07 15:12:22 +00:00
2025-09-24 22:20:49 +09:00
2026-01-09 10:42:23 +00:00
2026-01-08 09:07:41 -03:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2026-01-02 12:47:00 +00:00
2025-09-24 22:20:49 +09:00
2026-01-08 16:59:11 +09:00
2026-01-02 12:47:00 +00:00
2026-01-08 09:07:41 -03:00
2025-11-25 17:32:28 -03:00
2026-01-02 12:47:00 +00:00
2026-01-02 12:47:00 +00:00
2025-09-24 22:20:49 +09:00
2026-01-08 09:07:41 -03:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-12-26 11:54:30 -03:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2026-01-02 12:47:00 +00:00
2026-01-08 09:07:41 -03:00
2026-01-11 10:34:02 +05:30
2025-12-15 10:43:22 +00:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-11-25 17:32:28 -03:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2026-01-05 11:11:05 +00:00
2026-01-08 16:59:11 +09:00
2025-09-24 22:20:49 +09:00
2026-01-08 09:07:41 -03:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2026-01-05 08:10:55 +00:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2026-01-02 12:47:00 +00:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2025-11-25 17:32:28 -03:00
2026-01-01 18:16:10 -03:00
2025-09-24 22:20:49 +09:00
2025-11-25 17:32:28 -03:00
2025-09-24 22:20:49 +09:00
2026-01-08 09:07:41 -03:00
2025-11-25 17:32:28 -03:00
2026-01-06 22:29:17 -03:00
2025-09-24 22:20:49 +09:00
2025-09-24 22:20:49 +09:00
2026-01-08 09:07:41 -03:00
2025-09-24 22:20:49 +09:00
2025-12-26 11:54:30 -03:00
2025-09-24 22:20:49 +09:00
2026-01-08 09:07:41 -03:00
2026-01-02 12:47:00 +00:00
2026-01-07 21:49:11 +00:00
2025-10-21 20:02:03 +01:00
2022-06-24 09:38:17 -06:00
2025-09-12 19:02:17 +00:00
2025-12-09 17:56:20 +00:00
2025-12-09 17:56:20 +00:00
2025-12-30 07:49:46 +00:00
2025-12-29 19:41:41 -03:00
2025-12-29 19:41:41 -03:00
2025-12-29 19:41:41 -03:00
2025-12-02 02:18:25 +00:00
2023-10-10 09:46:04 +05:30
2025-12-29 19:41:41 -03:00
2023-08-24 13:38:15 -07:00
2024-05-31 16:07:09 +00:00
2024-12-04 15:07:30 +00:00
2025-09-12 19:02:17 +00:00
2025-09-08 08:38:46 -03:00
2023-10-03 11:52:19 -07:00
2025-03-05 14:58:02 -03:00
2026-01-08 16:59:11 +09:00
2026-01-08 09:07:41 -03:00
2023-12-20 13:29:23 -05:00
2023-08-29 11:32:20 +05:30
2023-04-26 12:03:34 +01:00
2023-10-10 09:46:04 +05:30
2025-10-10 07:11:46 -03:00
2025-09-06 09:39:26 -03:00
2025-09-06 09:39:26 -03:00
2025-12-23 08:24:23 +00:00
2026-01-08 16:59:11 +09:00
2025-08-28 10:05:36 -03:00
2025-10-09 14:02:12 +00:00
2025-09-19 10:16:56 -03:00
2026-01-08 16:59:11 +09:00
2025-09-14 12:51:05 +00:00
2025-11-21 15:51:23 +00:00
2025-11-21 15:51:23 +00:00
2025-09-12 19:02:17 +00:00
2025-09-12 05:57:09 -03:00