@lunora/testing 1.0.0-alpha.5 → 1.0.0-alpha.7

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/README.md CHANGED
@@ -116,6 +116,18 @@ const t = lunoraTest(schema, { fetch: fakeFetch });
116
116
 
117
117
  Without the option, `ctx.fetch` still throws the v1 error on first access.
118
118
 
119
+ #### Fixed `ctx.now`
120
+
121
+ Pass a `now` option (epoch ms) to pin `ctx.now` across every context, so
122
+ time-dependent handlers are deterministic:
123
+
124
+ ```ts
125
+ const t = lunoraTest(schema, { now: 1_700_000_000_000 });
126
+ // ctx.now === 1_700_000_000_000 in every query/mutation/action
127
+ ```
128
+
129
+ Defaults to the wall clock captured at harness creation.
130
+
119
131
  #### Controllable in-memory scheduler
120
132
 
121
133
  `ctx.scheduler` is a fully functional fake. Jobs are enqueued synchronously but