@btravstack/testing 0.25.0 → 0.27.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 +3 -2
- package/dist/index.d.mts +3 -2
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnvironmentFor } from "@btravstack/config";
|
|
2
|
+
import { AnyUnitModule, Clock, KernelEnvironment, RunningApp, Runtime, RuntimeHost, RuntimeInfoOf, RuntimePort, Serving, StartGate, StartOptions, UnitNeedsOf } from "@btravstack/core";
|
|
2
3
|
import { AnyPort, Module, Provider, ServiceOf } from "@btravstack/di";
|
|
3
4
|
import { AsyncResult, Result } from "unthrown";
|
|
4
5
|
//#region src/boot-fixture.d.ts
|
|
@@ -7,7 +8,7 @@ import { AsyncResult, Result } from "unthrown";
|
|
|
7
8
|
* gate, minus `signals` (always off) — every application it starts is stopped
|
|
8
9
|
* when the test ends.
|
|
9
10
|
*/
|
|
10
|
-
type Boot = <X, E, N>(module: Module<X, E, N> & StartGate<X, N>, options?: Omit<StartOptions
|
|
11
|
+
type Boot = <X, E, N>(module: Module<X, E, N> & StartGate<X, N>, options?: Omit<StartOptions<EnvironmentFor<N> & KernelEnvironment>, "signals">) => RunningApp<E, RuntimeInfoOf<X>>;
|
|
11
12
|
/** What every `boot` in the fixture starts with; a call's own options win. */
|
|
12
13
|
type BootDefaults = Omit<StartOptions, "signals">;
|
|
13
14
|
/**
|
package/dist/index.d.mts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { AnyUnitModule, Clock, RunningApp, Runtime, RuntimeHost, RuntimeInfoOf, RuntimePort, Serving, StartGate, StartOptions, UnitNeedsOf } from "@btravstack/core";
|
|
1
|
+
import { AnyUnitModule, Clock, KernelEnvironment, RunningApp, Runtime, RuntimeHost, RuntimeInfoOf, RuntimePort, Serving, StartGate, StartOptions, UnitNeedsOf } from "@btravstack/core";
|
|
2
2
|
import { AsyncResult, Result } from "unthrown";
|
|
3
3
|
import { AnyPort, Module, Provider, ServiceOf } from "@btravstack/di";
|
|
4
|
+
import { EnvironmentFor } from "@btravstack/config";
|
|
4
5
|
//#region src/boot-fixture.d.ts
|
|
5
6
|
/**
|
|
6
7
|
* `start`, as a test hands it out: the same signature and the same phantom
|
|
7
8
|
* gate, minus `signals` (always off) — every application it starts is stopped
|
|
8
9
|
* when the test ends.
|
|
9
10
|
*/
|
|
10
|
-
type Boot = <X, E, N>(module: Module<X, E, N> & StartGate<X, N>, options?: Omit<StartOptions
|
|
11
|
+
type Boot = <X, E, N>(module: Module<X, E, N> & StartGate<X, N>, options?: Omit<StartOptions<EnvironmentFor<N> & KernelEnvironment>, "signals">) => RunningApp<E, RuntimeInfoOf<X>>;
|
|
11
12
|
/** What every `boot` in the fixture starts with; a call's own options win. */
|
|
12
13
|
type BootDefaults = Omit<StartOptions, "signals">;
|
|
13
14
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@btravstack/testing",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.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",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@btravstack/config": "0.
|
|
58
|
-
"@btravstack/core": "0.
|
|
59
|
-
"@btravstack/di": "0.
|
|
57
|
+
"@btravstack/config": "0.27.0",
|
|
58
|
+
"@btravstack/core": "0.27.0",
|
|
59
|
+
"@btravstack/di": "0.27.0",
|
|
60
60
|
"@btravstack/tsconfig": "0.4.0",
|
|
61
61
|
"@types/node": "26.6.4",
|
|
62
62
|
"@unthrown/vitest": "5.12.0",
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
"vitest": "5.0.3"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@btravstack/config": "^0.
|
|
72
|
-
"@btravstack/core": "^0.
|
|
73
|
-
"@btravstack/di": "^0.
|
|
71
|
+
"@btravstack/config": "^0.27.0",
|
|
72
|
+
"@btravstack/core": "^0.27.0",
|
|
73
|
+
"@btravstack/di": "^0.27.0",
|
|
74
74
|
"jose": "^6",
|
|
75
75
|
"unthrown": "^5.0.0"
|
|
76
76
|
},
|