@shivaedev/effect-test 0.7.1 → 0.7.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.2 - 2026-10-24
4
+
5
+ ### Changed
6
+
7
+ - Require Effect and its companion packages at exactly 4.0.5. Generated applications use the same versions.
8
+
3
9
  ## 0.7.1 - 2026-10-18
4
10
 
5
11
  ### Fixed
package/README.md CHANGED
@@ -157,6 +157,10 @@ The override changes the per-test environment used by the wrapper, harness and b
157
157
 
158
158
  Worker acquisition is separate: a Layer that reads the default Clock while it is being built sees live time, even when its tests use TestClock.
159
159
 
160
+ A `Clock.Clock` supplied by the fixture's Layer takes precedence over the runner's default Clock in the wrapper, harness and body. Reads and sleeps use that fixture Clock, including explicit advancement when it is a native TestClock.
161
+
162
+ Both test and live clock fixtures install a fresh native TestConsole for each test. `Console.log` from `effect` is captured by `TestConsole.logLines` from `effect/testing/TestConsole`; one test's output does not carry into the next.
163
+
160
164
  ### Waiting for a typed readiness condition
161
165
 
162
166
  `eventually(effect, options)` retries the Effect's typed failures until it succeeds or uses its retry budget. It uses the active Clock: under TestClock it advances time with `TestClock.adjust`; under live time it retries with `Schedule.spaced`.
@@ -230,7 +234,7 @@ Import the module that defines the name; the package has no root entry.
230
234
  ### Install, setup and limits
231
235
 
232
236
  ```sh
233
- pnpm add --save-dev @shivaedev/effect-test @effect/vitest@4.0.4 effect@4.0.4 vitest@5.0.3
237
+ pnpm add --save-dev @shivaedev/effect-test @effect/vitest@4.0.5 effect@4.0.5 vitest@5.0.3
234
238
  ```
235
239
 
236
240
  The package declares `effect` as a peer and `@effect/vitest` as an optional peer. The Vitest runner modules require `@effect/vitest`; install it when using them. The package requires Node.js 24 or later. Use peer versions compatible with the package's `package.json`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shivaedev/effect-test",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Generic Effect Vitest runner with worker-scoped Layers and TestClock",
5
5
  "homepage": "https://github.com/ShivaeDev/platform/tree/main/packages/effect-test#readme",
6
6
  "bugs": {
@@ -41,16 +41,16 @@
41
41
  "README.md"
42
42
  ],
43
43
  "devDependencies": {
44
- "@effect/vitest": "4.0.4",
45
- "@shivaedev/quality": "0.27.1",
44
+ "@effect/vitest": "4.0.5",
45
+ "@shivaedev/quality": "0.34.0",
46
46
  "@types/node": "24.19.2",
47
- "effect": "4.0.4",
47
+ "effect": "4.0.5",
48
48
  "typescript": "7.0.2",
49
- "vitest": "5.0.3"
49
+ "vitest": "5.0.5"
50
50
  },
51
51
  "peerDependencies": {
52
- "@effect/vitest": "4.0.4",
53
- "effect": "4.0.4"
52
+ "@effect/vitest": "4.0.5",
53
+ "effect": "4.0.5"
54
54
  },
55
55
  "peerDependenciesMeta": {
56
56
  "@effect/vitest": {