@btravstack/testing 0.10.0 → 0.11.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/dist/index.d.cts CHANGED
@@ -1,6 +1,5 @@
1
- import { Env } from "@btravstack/config";
2
1
  import { Clock, RunningApp, Runtime, RuntimeInfoOf, RuntimePort, Serving, StartGate, StartOptions } from "@btravstack/core";
3
- import { AnyPort, Module, Provider, Scope, ServiceOf } from "@btravstack/di";
2
+ import { AnyPort, Module, Provider, ServiceOf } from "@btravstack/di";
4
3
  import { AsyncResult, Result } from "unthrown";
5
4
  //#region src/boot-fixture.d.ts
6
5
  /**
@@ -8,7 +7,7 @@ import { AsyncResult, Result } from "unthrown";
8
7
  * gate, minus `signals` (always off) — every application it starts is stopped
9
8
  * when the test ends.
10
9
  */
11
- type Boot = <X, E, UnitX = never, UnitNeeds = never>(module: Module<X, E, Scope | Env> & StartGate<X, UnitNeeds>, options?: Omit<StartOptions<UnitX, UnitNeeds>, "signals">) => RunningApp<E, RuntimeInfoOf<X>>;
10
+ type Boot = <X, E, N, UnitX = never, UnitNeeds = never>(module: Module<X, E, N> & StartGate<X, UnitNeeds, N>, options?: Omit<StartOptions<UnitX, UnitNeeds>, "signals">) => RunningApp<E, RuntimeInfoOf<X>>;
12
11
  /** What every `boot` in the fixture starts with; a call's own options win. */
13
12
  type BootDefaults = Omit<StartOptions, "signals" | "unit">;
14
13
  /**
@@ -167,4 +166,4 @@ type TestRuntime = Runtime<never, TestRuntimeInfo> & {
167
166
  };
168
167
  declare const testRuntime: (name?: string) => TestRuntime;
169
168
  //#endregion
170
- export { type Boot, type FakeClock, type ServicesOf, type TestRuntime, type TestRuntimeInfo, TestRuntimePort, bootFixture, createFakeClock, overridden, tapped, testRuntime };
169
+ export { type Boot, type BootDefaults, type FakeClock, type ServicesOf, type SubmittedUnit, type TestRuntime, type TestRuntimeInfo, TestRuntimePort, bootFixture, createFakeClock, overridden, tapped, testRuntime };
package/dist/index.d.mts CHANGED
@@ -1,14 +1,13 @@
1
1
  import { Clock, RunningApp, Runtime, RuntimeInfoOf, RuntimePort, Serving, StartGate, StartOptions } from "@btravstack/core";
2
2
  import { AsyncResult, Result } from "unthrown";
3
- import { AnyPort, Module, Provider, Scope, ServiceOf } from "@btravstack/di";
4
- import { Env } from "@btravstack/config";
3
+ import { AnyPort, Module, Provider, ServiceOf } from "@btravstack/di";
5
4
  //#region src/boot-fixture.d.ts
6
5
  /**
7
6
  * `start`, as a test hands it out: the same signature and the same phantom
8
7
  * gate, minus `signals` (always off) — every application it starts is stopped
9
8
  * when the test ends.
10
9
  */
11
- type Boot = <X, E, UnitX = never, UnitNeeds = never>(module: Module<X, E, Scope | Env> & StartGate<X, UnitNeeds>, options?: Omit<StartOptions<UnitX, UnitNeeds>, "signals">) => RunningApp<E, RuntimeInfoOf<X>>;
10
+ type Boot = <X, E, N, UnitX = never, UnitNeeds = never>(module: Module<X, E, N> & StartGate<X, UnitNeeds, N>, options?: Omit<StartOptions<UnitX, UnitNeeds>, "signals">) => RunningApp<E, RuntimeInfoOf<X>>;
12
11
  /** What every `boot` in the fixture starts with; a call's own options win. */
13
12
  type BootDefaults = Omit<StartOptions, "signals" | "unit">;
14
13
  /**
@@ -167,4 +166,4 @@ type TestRuntime = Runtime<never, TestRuntimeInfo> & {
167
166
  };
168
167
  declare const testRuntime: (name?: string) => TestRuntime;
169
168
  //#endregion
170
- export { type Boot, type FakeClock, type ServicesOf, type TestRuntime, type TestRuntimeInfo, TestRuntimePort, bootFixture, createFakeClock, overridden, tapped, testRuntime };
169
+ export { type Boot, type BootDefaults, type FakeClock, type ServicesOf, type SubmittedUnit, type TestRuntime, type TestRuntimeInfo, TestRuntimePort, bootFixture, createFakeClock, overridden, tapped, testRuntime };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@btravstack/testing",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Test the applications @btravstack/core boots: an in-memory runtime, a fake clock, a boot fixture that stops what it started, and a tap into a running graph",
5
5
  "keywords": [
6
6
  "dependency-injection",
@@ -52,15 +52,15 @@
52
52
  "typescript": "7.0.2",
53
53
  "unthrown": "5.7.0",
54
54
  "vitest": "4.1.11",
55
- "@btravstack/config": "0.10.0",
56
- "@btravstack/core": "0.10.0",
57
- "@btravstack/di": "0.10.0"
55
+ "@btravstack/config": "0.11.0",
56
+ "@btravstack/core": "0.11.0",
57
+ "@btravstack/di": "0.11.0"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "unthrown": "^5.0.0",
61
- "@btravstack/config": "^0.10.0",
62
- "@btravstack/core": "^0.10.0",
63
- "@btravstack/di": "^0.10.0"
61
+ "@btravstack/config": "^0.11.0",
62
+ "@btravstack/core": "^0.11.0",
63
+ "@btravstack/di": "^0.11.0"
64
64
  },
65
65
  "engines": {
66
66
  "node": ">=22"