@ultimat3/testing
Advanced tools
+13
-13
| { | ||
| "name": "@ultimat3/testing", | ||
| "version": "17.0.0", | ||
| "version": "18.0.0", | ||
| "description": "Test harness: cloned template DBs per worker, frozen clock, sealed network, 6 test types", | ||
@@ -29,3 +29,3 @@ "license": "MIT", | ||
| "engines": { | ||
| "bun": ">=1.3.0" | ||
| "bun": ">=1.4.0" | ||
| }, | ||
@@ -37,14 +37,14 @@ "scripts": { | ||
| "dependencies": { | ||
| "@ultimat3/cache": "17.0.0", | ||
| "@ultimat3/core": "17.0.0", | ||
| "@ultimat3/db": "17.0.0", | ||
| "@ultimat3/entity": "17.0.0", | ||
| "@ultimat3/i18n": "17.0.0", | ||
| "@ultimat3/jobs": "17.0.0", | ||
| "@ultimat3/mail": "17.0.0", | ||
| "@ultimat3/policy": "17.0.0", | ||
| "@ultimat3/query": "17.0.0", | ||
| "@ultimat3/realtime": "17.0.0", | ||
| "@ultimat3/time": "17.0.0" | ||
| "@ultimat3/cache": "18.0.0", | ||
| "@ultimat3/core": "18.0.0", | ||
| "@ultimat3/db": "18.0.0", | ||
| "@ultimat3/entity": "18.0.0", | ||
| "@ultimat3/i18n": "18.0.0", | ||
| "@ultimat3/jobs": "18.0.0", | ||
| "@ultimat3/mail": "18.0.0", | ||
| "@ultimat3/policy": "18.0.0", | ||
| "@ultimat3/query": "18.0.0", | ||
| "@ultimat3/realtime": "18.0.0", | ||
| "@ultimat3/time": "18.0.0" | ||
| } | ||
| } |
@@ -41,3 +41,6 @@ // The `clock` fixture: the only legal way for time to pass inside a test. | ||
| now: frozenNow, | ||
| advance: (duration) => advanceClock(toMs(duration)), | ||
| // The two names are the CALLER's: an author who wrote `clock.advance('3s')` never typed | ||
| // `toMs`, and `pass a finite duration to toMs` sends them looking for a knob their code does | ||
| // not contain. `@ultimat3/time`'s `toMs` takes them optionally for exactly this. | ||
| advance: (duration) => advanceClock(toMs(duration, 'clock.advance', 'duration')), | ||
| set: (instant) => { | ||
@@ -44,0 +47,0 @@ setFrozenClock(instant); |
323154
0.09%5436
0.06%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated