@mastra/inngest 0.0.0-course-20250527170450 → 0.0.0-fix-generate-title-20250616171351

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/src/index.test.ts CHANGED
@@ -7,8 +7,8 @@ import { realtimeMiddleware } from '@inngest/realtime';
7
7
  import { createTool, Mastra, Telemetry } from '@mastra/core';
8
8
  import { Agent } from '@mastra/core/agent';
9
9
  import { RuntimeContext } from '@mastra/core/runtime-context';
10
- import { DefaultStorage } from '@mastra/core/storage/libsql';
11
10
  import { createHonoServer } from '@mastra/deployer/server';
11
+ import { DefaultStorage } from '@mastra/libsql';
12
12
  import { $ } from 'execa';
13
13
  import getPort from 'get-port';
14
14
  import { Inngest } from 'inngest';
@@ -67,9 +67,7 @@ describe('MastraInngestWorkflow', () => {
67
67
 
68
68
  const mastra = new Mastra({
69
69
  storage: new DefaultStorage({
70
- config: {
71
- url: ':memory:',
72
- },
70
+ url: ':memory:',
73
71
  }),
74
72
  workflows: {
75
73
  'test-workflow': workflow,
@@ -144,9 +142,7 @@ describe('MastraInngestWorkflow', () => {
144
142
 
145
143
  const mastra = new Mastra({
146
144
  storage: new DefaultStorage({
147
- config: {
148
- url: ':memory:',
149
- },
145
+ url: ':memory:',
150
146
  }),
151
147
  workflows: {
152
148
  'test-workflow': workflow,
@@ -227,9 +223,7 @@ describe('MastraInngestWorkflow', () => {
227
223
 
228
224
  const mastra = new Mastra({
229
225
  storage: new DefaultStorage({
230
- config: {
231
- url: ':memory:',
232
- },
226
+ url: ':memory:',
233
227
  }),
234
228
  workflows: {
235
229
  'test-workflow': workflow,
@@ -265,6 +259,186 @@ describe('MastraInngestWorkflow', () => {
265
259
 
266
260
  srv.close();
267
261
  });
262
+
263
+ it('should execute a a sleep step', async ctx => {
264
+ const inngest = new Inngest({
265
+ id: 'mastra',
266
+ baseUrl: `http://localhost:${(ctx as any).inngestPort}`,
267
+ });
268
+
269
+ const { createWorkflow, createStep } = init(inngest);
270
+
271
+ const execute = vi.fn<any>().mockResolvedValue({ result: 'success' });
272
+ const step1 = createStep({
273
+ id: 'step1',
274
+ execute,
275
+ inputSchema: z.object({}),
276
+ outputSchema: z.object({ result: z.string() }),
277
+ });
278
+ const step2 = createStep({
279
+ id: 'step2',
280
+ execute: async ({ inputData }) => {
281
+ return { result: 'slept successfully: ' + inputData.result };
282
+ },
283
+ inputSchema: z.object({ result: z.string() }),
284
+ outputSchema: z.object({ result: z.string() }),
285
+ });
286
+
287
+ const workflow = createWorkflow({
288
+ id: 'test-workflow',
289
+ inputSchema: z.object({}),
290
+ outputSchema: z.object({
291
+ result: z.string(),
292
+ }),
293
+ steps: [step1],
294
+ });
295
+
296
+ workflow.then(step1).sleep(1000).then(step2).commit();
297
+
298
+ const mastra = new Mastra({
299
+ storage: new DefaultStorage({
300
+ url: ':memory:',
301
+ }),
302
+ workflows: {
303
+ 'test-workflow': workflow,
304
+ },
305
+ server: {
306
+ apiRoutes: [
307
+ {
308
+ path: '/inngest/api',
309
+ method: 'ALL',
310
+ createHandler: async ({ mastra }) => inngestServe({ mastra, inngest }),
311
+ },
312
+ ],
313
+ },
314
+ });
315
+
316
+ const app = await createHonoServer(mastra);
317
+
318
+ const srv = serve({
319
+ fetch: app.fetch,
320
+ port: (ctx as any).handlerPort,
321
+ });
322
+ await new Promise(resolve => setTimeout(resolve, 2000));
323
+
324
+ const run = workflow.createRun();
325
+ const startTime = Date.now();
326
+ const result = await run.start({ inputData: {} });
327
+ const endTime = Date.now();
328
+
329
+ expect(execute).toHaveBeenCalled();
330
+ expect(result.steps['step1']).toEqual({
331
+ status: 'success',
332
+ output: { result: 'success' },
333
+ // payload: {},
334
+ // startedAt: expect.any(Number),
335
+ // endedAt: expect.any(Number),
336
+ });
337
+
338
+ expect(result.steps['step2']).toEqual({
339
+ status: 'success',
340
+ output: { result: 'slept successfully: success' },
341
+ // payload: { result: 'success' },
342
+ // startedAt: expect.any(Number),
343
+ // endedAt: expect.any(Number),
344
+ });
345
+
346
+ expect(endTime - startTime).toBeGreaterThan(1000);
347
+
348
+ srv.close();
349
+ });
350
+
351
+ it('should execute a a sleep until step', async ctx => {
352
+ const inngest = new Inngest({
353
+ id: 'mastra',
354
+ baseUrl: `http://localhost:${(ctx as any).inngestPort}`,
355
+ });
356
+
357
+ const { createWorkflow, createStep } = init(inngest);
358
+
359
+ const execute = vi.fn<any>().mockResolvedValue({ result: 'success' });
360
+ const step1 = createStep({
361
+ id: 'step1',
362
+ execute,
363
+ inputSchema: z.object({}),
364
+ outputSchema: z.object({ result: z.string() }),
365
+ });
366
+ const step2 = createStep({
367
+ id: 'step2',
368
+ execute: async ({ inputData }) => {
369
+ return { result: 'slept successfully: ' + inputData.result };
370
+ },
371
+ inputSchema: z.object({ result: z.string() }),
372
+ outputSchema: z.object({ result: z.string() }),
373
+ });
374
+
375
+ const workflow = createWorkflow({
376
+ id: 'test-workflow',
377
+ inputSchema: z.object({}),
378
+ outputSchema: z.object({
379
+ result: z.string(),
380
+ }),
381
+ steps: [step1],
382
+ });
383
+
384
+ workflow
385
+ .then(step1)
386
+ .sleepUntil(new Date(Date.now() + 1000))
387
+ .then(step2)
388
+ .commit();
389
+
390
+ const mastra = new Mastra({
391
+ storage: new DefaultStorage({
392
+ url: ':memory:',
393
+ }),
394
+ workflows: {
395
+ 'test-workflow': workflow,
396
+ },
397
+ server: {
398
+ apiRoutes: [
399
+ {
400
+ path: '/inngest/api',
401
+ method: 'ALL',
402
+ createHandler: async ({ mastra }) => inngestServe({ mastra, inngest }),
403
+ },
404
+ ],
405
+ },
406
+ });
407
+
408
+ const app = await createHonoServer(mastra);
409
+
410
+ const srv = serve({
411
+ fetch: app.fetch,
412
+ port: (ctx as any).handlerPort,
413
+ });
414
+ await new Promise(resolve => setTimeout(resolve, 2000));
415
+
416
+ const run = workflow.createRun();
417
+ const startTime = Date.now();
418
+ const result = await run.start({ inputData: {} });
419
+ const endTime = Date.now();
420
+
421
+ expect(execute).toHaveBeenCalled();
422
+ expect(result.steps['step1']).toEqual({
423
+ status: 'success',
424
+ output: { result: 'success' },
425
+ // payload: {},
426
+ // startedAt: expect.any(Number),
427
+ // endedAt: expect.any(Number),
428
+ });
429
+
430
+ expect(result.steps['step2']).toEqual({
431
+ status: 'success',
432
+ output: { result: 'slept successfully: success' },
433
+ // payload: { result: 'success' },
434
+ // startedAt: expect.any(Number),
435
+ // endedAt: expect.any(Number),
436
+ });
437
+
438
+ expect(endTime - startTime).toBeGreaterThan(1000);
439
+
440
+ srv.close();
441
+ });
268
442
  });
269
443
 
270
444
  describe('Variable Resolution', () => {
@@ -301,9 +475,7 @@ describe('MastraInngestWorkflow', () => {
301
475
 
302
476
  const mastra = new Mastra({
303
477
  storage: new DefaultStorage({
304
- config: {
305
- url: ':memory:',
306
- },
478
+ url: ':memory:',
307
479
  }),
308
480
  workflows: {
309
481
  'test-workflow': workflow,
@@ -390,9 +562,7 @@ describe('MastraInngestWorkflow', () => {
390
562
 
391
563
  const mastra = new Mastra({
392
564
  storage: new DefaultStorage({
393
- config: {
394
- url: ':memory:',
395
- },
565
+ url: ':memory:',
396
566
  }),
397
567
  workflows: {
398
568
  'test-workflow': workflow,
@@ -459,9 +629,7 @@ describe('MastraInngestWorkflow', () => {
459
629
 
460
630
  const mastra = new Mastra({
461
631
  storage: new DefaultStorage({
462
- config: {
463
- url: ':memory:',
464
- },
632
+ url: ':memory:',
465
633
  }),
466
634
  workflows: {
467
635
  'test-workflow': workflow,
@@ -536,9 +704,7 @@ describe('MastraInngestWorkflow', () => {
536
704
 
537
705
  const mastra = new Mastra({
538
706
  storage: new DefaultStorage({
539
- config: {
540
- url: ':memory:',
541
- },
707
+ url: ':memory:',
542
708
  }),
543
709
  workflows: {
544
710
  'test-workflow': workflow,
@@ -620,9 +786,7 @@ describe('MastraInngestWorkflow', () => {
620
786
 
621
787
  const mastra = new Mastra({
622
788
  storage: new DefaultStorage({
623
- config: {
624
- url: ':memory:',
625
- },
789
+ url: ':memory:',
626
790
  }),
627
791
  workflows: {
628
792
  'test-workflow': workflow,
@@ -725,9 +889,7 @@ describe('MastraInngestWorkflow', () => {
725
889
 
726
890
  const mastra = new Mastra({
727
891
  storage: new DefaultStorage({
728
- config: {
729
- url: ':memory:',
730
- },
892
+ url: ':memory:',
731
893
  }),
732
894
  workflows: {
733
895
  'test-workflow': workflow,
@@ -803,9 +965,7 @@ describe('MastraInngestWorkflow', () => {
803
965
 
804
966
  const mastra = new Mastra({
805
967
  storage: new DefaultStorage({
806
- config: {
807
- url: ':memory:',
808
- },
968
+ url: ':memory:',
809
969
  }),
810
970
  workflows: {
811
971
  'test-workflow': workflow,
@@ -910,9 +1070,7 @@ describe('MastraInngestWorkflow', () => {
910
1070
 
911
1071
  const mastra = new Mastra({
912
1072
  storage: new DefaultStorage({
913
- config: {
914
- url: ':memory:',
915
- },
1073
+ url: ':memory:',
916
1074
  }),
917
1075
  workflows: {
918
1076
  'test-workflow': workflow,
@@ -995,9 +1153,7 @@ describe('MastraInngestWorkflow', () => {
995
1153
 
996
1154
  const mastra = new Mastra({
997
1155
  storage: new DefaultStorage({
998
- config: {
999
- url: ':memory:',
1000
- },
1156
+ url: ':memory:',
1001
1157
  }),
1002
1158
  workflows: {
1003
1159
  'test-workflow': workflow,
@@ -1065,9 +1221,7 @@ describe('MastraInngestWorkflow', () => {
1065
1221
 
1066
1222
  const mastra = new Mastra({
1067
1223
  storage: new DefaultStorage({
1068
- config: {
1069
- url: ':memory:',
1070
- },
1224
+ url: ':memory:',
1071
1225
  }),
1072
1226
  workflows: {
1073
1227
  'test-workflow': workflow,
@@ -1151,9 +1305,7 @@ describe('MastraInngestWorkflow', () => {
1151
1305
 
1152
1306
  const mastra = new Mastra({
1153
1307
  storage: new DefaultStorage({
1154
- config: {
1155
- url: ':memory:',
1156
- },
1308
+ url: ':memory:',
1157
1309
  }),
1158
1310
  workflows: {
1159
1311
  'test-workflow': workflow,
@@ -1247,9 +1399,7 @@ describe('MastraInngestWorkflow', () => {
1247
1399
 
1248
1400
  const mastra = new Mastra({
1249
1401
  storage: new DefaultStorage({
1250
- config: {
1251
- url: ':memory:',
1252
- },
1402
+ url: ':memory:',
1253
1403
  }),
1254
1404
  workflows: {
1255
1405
  'main-workflow': mainWorkflow,
@@ -1377,9 +1527,7 @@ describe('MastraInngestWorkflow', () => {
1377
1527
 
1378
1528
  const mastra = new Mastra({
1379
1529
  storage: new DefaultStorage({
1380
- config: {
1381
- url: ':memory:',
1382
- },
1530
+ url: ':memory:',
1383
1531
  }),
1384
1532
  workflows: {
1385
1533
  'test-workflow': workflow,
@@ -1481,9 +1629,7 @@ describe('MastraInngestWorkflow', () => {
1481
1629
 
1482
1630
  const mastra = new Mastra({
1483
1631
  storage: new DefaultStorage({
1484
- config: {
1485
- url: ':memory:',
1486
- },
1632
+ url: ':memory:',
1487
1633
  }),
1488
1634
  workflows: {
1489
1635
  'test-workflow': counterWorkflow,
@@ -1586,9 +1732,7 @@ describe('MastraInngestWorkflow', () => {
1586
1732
 
1587
1733
  const mastra = new Mastra({
1588
1734
  storage: new DefaultStorage({
1589
- config: {
1590
- url: ':memory:',
1591
- },
1735
+ url: ':memory:',
1592
1736
  }),
1593
1737
  workflows: {
1594
1738
  'test-workflow': counterWorkflow,
@@ -1677,9 +1821,7 @@ describe('MastraInngestWorkflow', () => {
1677
1821
 
1678
1822
  const mastra = new Mastra({
1679
1823
  storage: new DefaultStorage({
1680
- config: {
1681
- url: ':memory:',
1682
- },
1824
+ url: ':memory:',
1683
1825
  }),
1684
1826
  workflows: {
1685
1827
  'test-workflow': counterWorkflow,
@@ -1832,9 +1974,7 @@ describe('MastraInngestWorkflow', () => {
1832
1974
 
1833
1975
  const mastra = new Mastra({
1834
1976
  storage: new DefaultStorage({
1835
- config: {
1836
- url: ':memory:',
1837
- },
1977
+ url: ':memory:',
1838
1978
  }),
1839
1979
  workflows: {
1840
1980
  'test-workflow': counterWorkflow,
@@ -1983,9 +2123,7 @@ describe('MastraInngestWorkflow', () => {
1983
2123
 
1984
2124
  const mastra = new Mastra({
1985
2125
  storage: new DefaultStorage({
1986
- config: {
1987
- url: ':memory:',
1988
- },
2126
+ url: ':memory:',
1989
2127
  }),
1990
2128
  workflows: {
1991
2129
  'test-workflow': counterWorkflow,
@@ -2157,9 +2295,7 @@ describe('MastraInngestWorkflow', () => {
2157
2295
 
2158
2296
  const mastra = new Mastra({
2159
2297
  storage: new DefaultStorage({
2160
- config: {
2161
- url: ':memory:',
2162
- },
2298
+ url: ':memory:',
2163
2299
  }),
2164
2300
  workflows: {
2165
2301
  'test-workflow': workflow,
@@ -2225,9 +2361,7 @@ describe('MastraInngestWorkflow', () => {
2225
2361
 
2226
2362
  const mastra = new Mastra({
2227
2363
  storage: new DefaultStorage({
2228
- config: {
2229
- url: ':memory:',
2230
- },
2364
+ url: ':memory:',
2231
2365
  }),
2232
2366
  workflows: {
2233
2367
  'test-workflow': workflow,
@@ -2359,9 +2493,7 @@ describe('MastraInngestWorkflow', () => {
2359
2493
 
2360
2494
  const mastra = new Mastra({
2361
2495
  storage: new DefaultStorage({
2362
- config: {
2363
- url: ':memory:',
2364
- },
2496
+ url: ':memory:',
2365
2497
  }),
2366
2498
  workflows: {
2367
2499
  'test-workflow': workflow,
@@ -2432,9 +2564,7 @@ describe('MastraInngestWorkflow', () => {
2432
2564
 
2433
2565
  const mastra = new Mastra({
2434
2566
  storage: new DefaultStorage({
2435
- config: {
2436
- url: ':memory:',
2437
- },
2567
+ url: ':memory:',
2438
2568
  }),
2439
2569
  workflows: {
2440
2570
  'test-workflow': workflow,
@@ -2620,9 +2750,7 @@ describe('MastraInngestWorkflow', () => {
2620
2750
 
2621
2751
  const mastra = new Mastra({
2622
2752
  storage: new DefaultStorage({
2623
- config: {
2624
- url: ':memory:',
2625
- },
2753
+ url: ':memory:',
2626
2754
  }),
2627
2755
  workflows: {
2628
2756
  'test-workflow': workflow,
@@ -2792,18 +2920,10 @@ describe('MastraInngestWorkflow', () => {
2792
2920
 
2793
2921
  // Create a new storage instance for initial run
2794
2922
  const initialStorage = new DefaultStorage({
2795
- config: {
2796
- url: 'file::memory:',
2797
- },
2923
+ url: 'file::memory:',
2798
2924
  });
2799
- await initialStorage.init();
2800
-
2801
2925
  const mastra = new Mastra({
2802
- storage: new DefaultStorage({
2803
- config: {
2804
- url: ':memory:',
2805
- },
2806
- }),
2926
+ storage: initialStorage,
2807
2927
  workflows: {
2808
2928
  'test-workflow': promptEvalWorkflow,
2809
2929
  },
@@ -2952,9 +3072,7 @@ describe('MastraInngestWorkflow', () => {
2952
3072
 
2953
3073
  const mastra = new Mastra({
2954
3074
  storage: new DefaultStorage({
2955
- config: {
2956
- url: ':memory:',
2957
- },
3075
+ url: ':memory:',
2958
3076
  }),
2959
3077
  workflows: {
2960
3078
  'test-workflow': workflow,
@@ -3156,9 +3274,7 @@ describe('MastraInngestWorkflow', () => {
3156
3274
 
3157
3275
  const mastra = new Mastra({
3158
3276
  storage: new DefaultStorage({
3159
- config: {
3160
- url: ':memory:',
3161
- },
3277
+ url: ':memory:',
3162
3278
  }),
3163
3279
  workflows: {
3164
3280
  'test-workflow': workflow,
@@ -3352,9 +3468,7 @@ describe('MastraInngestWorkflow', () => {
3352
3468
 
3353
3469
  const mastra = new Mastra({
3354
3470
  storage: new DefaultStorage({
3355
- config: {
3356
- url: ':memory:',
3357
- },
3471
+ url: ':memory:',
3358
3472
  }),
3359
3473
  workflows: {
3360
3474
  'test-workflow': promptEvalWorkflow,
@@ -3478,9 +3592,7 @@ describe('MastraInngestWorkflow', () => {
3478
3592
 
3479
3593
  const mastra = new Mastra({
3480
3594
  storage: new DefaultStorage({
3481
- config: {
3482
- url: ':memory:',
3483
- },
3595
+ url: ':memory:',
3484
3596
  }),
3485
3597
  workflows: {
3486
3598
  'test-workflow': workflow,
@@ -3583,9 +3695,7 @@ describe('MastraInngestWorkflow', () => {
3583
3695
 
3584
3696
  const mastra = new Mastra({
3585
3697
  storage: new DefaultStorage({
3586
- config: {
3587
- url: ':memory:',
3588
- },
3698
+ url: ':memory:',
3589
3699
  }),
3590
3700
  workflows: {
3591
3701
  'test-workflow': workflow,
@@ -3721,9 +3831,7 @@ describe('MastraInngestWorkflow', () => {
3721
3831
 
3722
3832
  const mastra = new Mastra({
3723
3833
  storage: new DefaultStorage({
3724
- config: {
3725
- url: ':memory:',
3726
- },
3834
+ url: ':memory:',
3727
3835
  }),
3728
3836
  workflows: {
3729
3837
  'test-workflow': workflow,
@@ -3866,9 +3974,7 @@ describe('MastraInngestWorkflow', () => {
3866
3974
 
3867
3975
  const mastra = new Mastra({
3868
3976
  storage: new DefaultStorage({
3869
- config: {
3870
- url: ':memory:',
3871
- },
3977
+ url: ':memory:',
3872
3978
  }),
3873
3979
  workflows: {
3874
3980
  'test-workflow': counterWorkflow,
@@ -4020,9 +4126,7 @@ describe('MastraInngestWorkflow', () => {
4020
4126
 
4021
4127
  const mastra = new Mastra({
4022
4128
  storage: new DefaultStorage({
4023
- config: {
4024
- url: ':memory:',
4025
- },
4129
+ url: ':memory:',
4026
4130
  }),
4027
4131
  workflows: {
4028
4132
  'test-workflow': counterWorkflow,
@@ -4179,9 +4283,7 @@ describe('MastraInngestWorkflow', () => {
4179
4283
 
4180
4284
  const mastra = new Mastra({
4181
4285
  storage: new DefaultStorage({
4182
- config: {
4183
- url: ':memory:',
4184
- },
4286
+ url: ':memory:',
4185
4287
  }),
4186
4288
  workflows: {
4187
4289
  'test-workflow': counterWorkflow,
@@ -4340,9 +4442,7 @@ describe('MastraInngestWorkflow', () => {
4340
4442
 
4341
4443
  const mastra = new Mastra({
4342
4444
  storage: new DefaultStorage({
4343
- config: {
4344
- url: ':memory:',
4345
- },
4445
+ url: ':memory:',
4346
4446
  }),
4347
4447
  workflows: {
4348
4448
  'test-workflow': counterWorkflow,
@@ -4539,9 +4639,7 @@ describe('MastraInngestWorkflow', () => {
4539
4639
 
4540
4640
  const mastra = new Mastra({
4541
4641
  storage: new DefaultStorage({
4542
- config: {
4543
- url: ':memory:',
4544
- },
4642
+ url: ':memory:',
4545
4643
  }),
4546
4644
  workflows: {
4547
4645
  'test-workflow': counterWorkflow,
@@ -4697,9 +4795,7 @@ describe('MastraInngestWorkflow', () => {
4697
4795
 
4698
4796
  const mastra = new Mastra({
4699
4797
  storage: new DefaultStorage({
4700
- config: {
4701
- url: ':memory:',
4702
- },
4798
+ url: ':memory:',
4703
4799
  }),
4704
4800
  workflows: {
4705
4801
  'test-workflow': counterWorkflow,
@@ -4847,9 +4943,7 @@ describe('MastraInngestWorkflow', () => {
4847
4943
 
4848
4944
  const mastra = new Mastra({
4849
4945
  storage: new DefaultStorage({
4850
- config: {
4851
- url: ':memory:',
4852
- },
4946
+ url: ':memory:',
4853
4947
  }),
4854
4948
  workflows: {
4855
4949
  'test-workflow': counterWorkflow,
@@ -4867,7 +4961,6 @@ describe('MastraInngestWorkflow', () => {
4867
4961
 
4868
4962
  const app = await createHonoServer(mastra);
4869
4963
  app.use('*', async (ctx, next) => {
4870
- 'middleware', ctx.req.method, ctx.req.url;
4871
4964
  await next();
4872
4965
  });
4873
4966
 
@@ -5034,9 +5127,7 @@ describe('MastraInngestWorkflow', () => {
5034
5127
 
5035
5128
  const mastra = new Mastra({
5036
5129
  storage: new DefaultStorage({
5037
- config: {
5038
- url: ':memory:',
5039
- },
5130
+ url: ':memory:',
5040
5131
  }),
5041
5132
  workflows: {
5042
5133
  'test-workflow': counterWorkflow,
@@ -5193,9 +5284,7 @@ describe('MastraInngestWorkflow', () => {
5193
5284
 
5194
5285
  const mastra = new Mastra({
5195
5286
  storage: new DefaultStorage({
5196
- config: {
5197
- url: ':memory:',
5198
- },
5287
+ url: ':memory:',
5199
5288
  }),
5200
5289
  workflows: {
5201
5290
  'test-workflow': counterWorkflow,
@@ -5270,9 +5359,7 @@ describe('MastraInngestWorkflow', () => {
5270
5359
 
5271
5360
  const mastra = new Mastra({
5272
5361
  storage: new DefaultStorage({
5273
- config: {
5274
- url: ':memory:',
5275
- },
5362
+ url: ':memory:',
5276
5363
  }),
5277
5364
  workflows: {
5278
5365
  'test-workflow': workflow,
@@ -5335,9 +5422,7 @@ describe('MastraInngestWorkflow', () => {
5335
5422
 
5336
5423
  const mastra = new Mastra({
5337
5424
  storage: new DefaultStorage({
5338
- config: {
5339
- url: ':memory:',
5340
- },
5425
+ url: ':memory:',
5341
5426
  }),
5342
5427
  workflows: {
5343
5428
  'test-workflow': workflow,
@@ -5378,11 +5463,8 @@ describe('MastraInngestWorkflow', () => {
5378
5463
  const { createWorkflow, createStep } = init(inngest);
5379
5464
 
5380
5465
  const initialStorage = new DefaultStorage({
5381
- config: {
5382
- url: 'file::memory:',
5383
- },
5466
+ url: 'file::memory:',
5384
5467
  });
5385
- await initialStorage.init();
5386
5468
 
5387
5469
  const runtimeContext = new RuntimeContext();
5388
5470
  const testValue = 'test-dependency';
@@ -5434,4 +5516,6 @@ describe('MastraInngestWorkflow', () => {
5434
5516
  expect(result?.steps.step1.output.injectedValue).toBe(testValue + '2');
5435
5517
  });
5436
5518
  });
5519
+
5520
+ describe('Access to inngest step primitives', () => {});
5437
5521
  }, 40e3);