@symbiote-native/test-utils 0.1.2 → 0.1.4

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @symbiote-native/test-utils
2
2
 
3
- The **shared fake-Fabric test harness** of [SymbioteNative](../../README.md) (ADR 0025) — one
3
+ The **shared fake-Fabric test harness** of [SymbioteNative](../../README.md) — one
4
4
  `installFabric()` that puts a fresh, faithful fake `nativeFabricUIManager` on `globalThis` and
5
5
  returns a handle to inspect what a renderer committed. It replaces the per-file fake slot every
6
6
  headless test used to copy-paste (×65 across the repo) with one implementation, shared by the
@@ -44,7 +44,7 @@ otherwise leak state into the next one.
44
44
  ## What `installFabric()` gives you
45
45
 
46
46
  - **`committed`** — the child set from the most recent `completeRoot`, and **`appRoot()`** — unwraps
47
- RN's synthetic `box-none` AppContainer root (ADR 0015) so a test doesn't re-check that invariant by
47
+ RN's synthetic `box-none` AppContainer root so a test doesn't re-check that invariant by
48
48
  hand.
49
49
  - **`created`** and **`find(predicate)`** — every node ever `createNode`'d this run (clones
50
50
  excluded), and a lookup by predicate (e.g. "the app's own `View` with this `testID`").
@@ -25,7 +25,7 @@ export interface IFabricRecorder {
25
25
  completeRoot: number;
26
26
  };
27
27
  /**
28
- * RN wraps every commit in a synthetic `box-none` AppContainer root (ADR 0015).
28
+ * RN wraps every commit in a synthetic `box-none` AppContainer root.
29
29
  * Returns it, asserting it is the single expected root, so each test unwraps the
30
30
  * AppContainer the same way instead of re-checking the invariant by hand.
31
31
  */
@@ -1,4 +1,4 @@
1
- // One shared fake `nativeFabricUIManager` for the unit suite (ADR 0025). `installFabric()`
1
+ // One shared fake `nativeFabricUIManager` for the unit suite. `installFabric()`
2
2
  // puts a fresh recording slot on `globalThis` and returns a handle to inspect what the
3
3
  // renderer committed. It replaces the per-file slot the smokes each copy-pasted (×65).
4
4
  //
@@ -9,7 +9,7 @@
9
9
  // key arrives as literal `null` and is kept as `null`, not deleted, so a test can still see
10
10
  // "explicitly reset" distinct from "never set"); the `*Children` variants reset children
11
11
  // (the engine re-appends). A persistence bug in the fake is now fixed once, here, for every
12
- // test, mirroring `clone_on_write_lives_in_engine`.
12
+ // test, matching how the real engine's clone-on-write commit path behaves.
13
13
  // Mirrors real Fabric's clone*WithNewProps merge: `diff` is a minimal payload (only changed
14
14
  // keys, plus a removed key sent as literal `null` — kept as `null` here, not deleted, so a
15
15
  // test can tell "explicitly reset to default" apart from "never set").
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // @symbiote-native/test-utils: shared, framework-agnostic test harness (ADR 0025). Imported by
1
+ // @symbiote-native/test-utils: shared, framework-agnostic test harness. Imported by
2
2
  // the co-located tests across engine, adapters, and the example apps so the fake-Fabric
3
3
  // recorder and its helpers live in exactly one place.
4
- export * from './fake-fabric';
4
+ export * from './fake-fabric.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@symbiote-native/test-utils",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Shared, framework-agnostic fake-Fabric test harness for SymbioteNative — the fake nativeFabricUIManager recorder used by the co-located test suites across the engine, every adapter, and the example apps.",
5
5
  "repository": {
6
6
  "type": "git",