@playfast/reform-remote-node 0.0.3 → 0.0.5

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@playfast/reform-remote-node",
3
3
  "playbook": "./playbook",
4
- "version": "0.0.3",
4
+ "version": "0.0.5",
5
5
  "type": "module",
6
6
  "description": "Node WebSocket server adapter for reform-remote — serves a reform scene's UI over the `ws` package, one isolated runtime per connection.",
7
7
  "keywords": [
@@ -1,6 +1,10 @@
1
1
  import type { AddressInfo } from 'node:net'
2
- import { afterEach, expect, test } from 'vitest'
2
+ import { afterEach, expect, test, vi } from 'vitest'
3
3
  import { Layer, Schema as S } from 'effect'
4
+
5
+ // Real loopback socket I/O: headroom so the full parallel suite can't starve it past
6
+ // the 5s default (passes fast in isolation; 30s still fails a genuine hang).
7
+ vi.setConfig({ testTimeout: 30_000, hookTimeout: 30_000 })
4
8
  import {
5
9
  Composition,
6
10
  Engine,
@@ -10,6 +14,7 @@ import {
10
14
  StateGroup,
11
15
  Ui,
12
16
  Wire,
17
+ mount,
13
18
  provide,
14
19
  scene,
15
20
  ui,
@@ -39,7 +44,7 @@ const counterScene = () => {
39
44
  Composition.live(Counter, function* () {
40
45
  const count = yield* StateGroup.select(Counters, 'count')
41
46
  const bump = yield* Event.trigger(Bumped)
42
- return (yield* CounterUi)({ count }, { bump })
47
+ return mount({ props: { count }, slots: {}, events: { bump } })
43
48
  }),
44
49
  Reducer.live(Bump, (n, event) => n + event.by),
45
50
  ).pipe(Layer.provideMerge(presentation), Layer.provideMerge(Engine))