@lunora/testing 1.0.0-alpha.18 → 1.0.0-alpha.180

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/LICENSE.md CHANGED
@@ -103,3 +103,9 @@ Unless required by applicable law or agreed to in writing, software distributed
103
103
  under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
104
104
  CONDITIONS OF ANY KIND, either express or implied. See the License for the
105
105
  specific language governing permissions and limitations under the License.
106
+
107
+ <!-- DEPENDENCIES -->
108
+ <!-- /DEPENDENCIES -->
109
+
110
+ <!-- TYPE_DEPENDENCIES -->
111
+ <!-- /TYPE_DEPENDENCIES -->
package/README.md CHANGED
@@ -167,8 +167,14 @@ The virtual clock is **per-harness** — advancing one harness's clock does not
167
167
  affect other harnesses, so tests running in parallel are isolated.
168
168
 
169
169
  Provide a `functions` map (`{ "path:name": registeredFn }`) so the scheduler
170
- can dispatch jobs. Paths not in the map produce a `console.warn` and are
171
- silently dropped (matching production behaviour for unknown paths).
170
+ can dispatch jobs. A path not in the map fails the job with `FUNCTION_NOT_FOUND`,
171
+ which then walks the retry budget into `t.scheduler.failures()` — matching
172
+ production, where the DO fires the job at the Worker and dead-letters it.
173
+
174
+ A retryable failure is re-enqueued silently, so `failures()` only fills once the
175
+ whole backoff schedule (~930s of virtual clock) has elapsed — and at that point
176
+ `advance()`/`runPending()` re-throw the failure by default. Pass
177
+ `{ throwOnError: false }` to inspect `failures()` instead.
172
178
 
173
179
  #### Subscription testing
174
180