@checkstack/test-utils-backend 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @checkstack/test-utils-backend
2
2
 
3
+ ## 0.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [2c0822d]
8
+ - Updated dependencies [66a3963]
9
+ - @checkstack/queue-api@0.2.0
10
+ - @checkstack/backend-api@0.5.0
11
+
3
12
  ## 0.1.5
4
13
 
5
14
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/test-utils-backend",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
@@ -65,7 +65,9 @@ export function createMockQueueManager(): QueueManager {
65
65
  scheduleRecurring: async (data, options) => {
66
66
  recurringJobs.set(options.jobId, {
67
67
  data,
68
- intervalSeconds: options.intervalSeconds,
68
+ // Store intervalSeconds if present (XOR pattern - one must be defined)
69
+ intervalSeconds:
70
+ "intervalSeconds" in options ? options.intervalSeconds! : 0,
69
71
  });
70
72
  return options.jobId;
71
73
  },
@@ -76,7 +78,7 @@ export function createMockQueueManager(): QueueManager {
76
78
  return [...recurringJobs.keys()];
77
79
  },
78
80
  getRecurringJobDetails: async (
79
- jobId
81
+ jobId,
80
82
  ): Promise<RecurringJobDetails<T> | undefined> => {
81
83
  const job = recurringJobs.get(jobId);
82
84
  if (!job) return undefined;