@ultimat3/testing 17.0.0 → 18.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/testing",
3
- "version": "17.0.0",
3
+ "version": "18.0.0",
4
4
  "description": "Test harness: cloned template DBs per worker, frozen clock, sealed network, 6 test types",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -26,23 +26,23 @@
26
26
  "LICENSE"
27
27
  ],
28
28
  "engines": {
29
- "bun": ">=1.3.0"
29
+ "bun": ">=1.4.0"
30
30
  },
31
31
  "scripts": {
32
32
  "typecheck": "tsc --noEmit -p tsconfig.json",
33
33
  "test": "bun test"
34
34
  },
35
35
  "dependencies": {
36
- "@ultimat3/cache": "17.0.0",
37
- "@ultimat3/core": "17.0.0",
38
- "@ultimat3/db": "17.0.0",
39
- "@ultimat3/entity": "17.0.0",
40
- "@ultimat3/i18n": "17.0.0",
41
- "@ultimat3/jobs": "17.0.0",
42
- "@ultimat3/mail": "17.0.0",
43
- "@ultimat3/policy": "17.0.0",
44
- "@ultimat3/query": "17.0.0",
45
- "@ultimat3/realtime": "17.0.0",
46
- "@ultimat3/time": "17.0.0"
36
+ "@ultimat3/cache": "18.0.0",
37
+ "@ultimat3/core": "18.0.0",
38
+ "@ultimat3/db": "18.0.0",
39
+ "@ultimat3/entity": "18.0.0",
40
+ "@ultimat3/i18n": "18.0.0",
41
+ "@ultimat3/jobs": "18.0.0",
42
+ "@ultimat3/mail": "18.0.0",
43
+ "@ultimat3/policy": "18.0.0",
44
+ "@ultimat3/query": "18.0.0",
45
+ "@ultimat3/realtime": "18.0.0",
46
+ "@ultimat3/time": "18.0.0"
47
47
  }
48
48
  }
@@ -38,7 +38,10 @@ export async function createTestClock(): Promise<TestClock> {
38
38
  const captured = captureDeterminism();
39
39
  return {
40
40
  now: frozenNow,
41
- advance: (duration) => advanceClock(toMs(duration)),
41
+ // The two names are the CALLER's: an author who wrote `clock.advance('3s')` never typed
42
+ // `toMs`, and `pass a finite duration to toMs` sends them looking for a knob their code does
43
+ // not contain. `@ultimat3/time`'s `toMs` takes them optionally for exactly this.
44
+ advance: (duration) => advanceClock(toMs(duration, 'clock.advance', 'duration')),
42
45
  set: (instant) => {
43
46
  setFrozenClock(instant);
44
47
  return frozenNow();