@shivaedev/test-story 0.17.0 → 0.18.1

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,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.18.1 - 2026-10-24
4
+
5
+ ### Changed
6
+
7
+ - Align published dependency and peer pins and the generated starter with React and React DOM 19.3.1, TanStack Router 1.170.45, Better Auth 1.7.10, happy-dom 21.0.3 and Vitest 5.0.5. The starter also uses pg-boss dashboard 1.12.1.
8
+
9
+ ## 0.18.0 - 2026-10-21
10
+
11
+ ### Breaking
12
+
13
+ - Test-story's peers are exactly Vitest 5.0.4 and happy-dom 21.0.1. Consumers pin `vitest` to 5.0.4 and, when they run DOM stories, `happy-dom` to 21.0.1; happy-dom remains optional for applications without DOM stories.
14
+
3
15
  ## 0.17.0 - 2026-10-19
4
16
 
5
17
  ### Added
package/README.md CHANGED
@@ -480,7 +480,7 @@ The package wraps between words or JSON fields toward 120 columns and prints the
480
480
 
481
481
  ### Library package kits
482
482
 
483
- A library package has an engine too: its own services or Layer under test. Keep its kit in `src/test-support/`, acquire the real services in `create` or a trait inside the story's per-test Scope, with their dependencies supplied by the kit's `layer`, and use real PostgreSQL wherever the package touches it. Traits seed that engine in domain words; each verb calls one action on the package's public API or reads one observation from that same engine. Verbs never create a fresh service just to run a scenario and return its measurements. The same division applies as for an application: the kit owns setup and wiring, and a spec names traits, shows every action through verbs and states each expectation. Following the [root test guidance](https://github.com/ShivaeDev/platform/blob/main/AGENTS.md), reserve plain Vitest tests for pure functions with no engine behind them.
483
+ A library package has an engine too: its own services or Layer under test. Keep its kit in `src/test-support/`, acquire the real services in `create` or a trait inside the story's per-test Scope, with their dependencies supplied by the kit's `layer`, and use real PostgreSQL wherever the package touches it. Traits seed that engine in domain words; each verb calls one action on the package's public API or reads one observation from that same engine. Verbs never create a fresh service just to run a scenario and return its measurements. The same division applies as for an application: the kit owns setup and wiring, and a spec names traits, shows every action through verbs and states each expectation. Following the [root test guidance](https://github.com/ShivaeDev/platform/blob/main/AGENTS.md), a pure function with no engine behind it gets a plain Vitest test in a `.unit` file, such as `parse.unit.test.ts`, which Quality checks reaches no engine and mocks nothing. Never wrap a pure function in a story that ignores its kit.
484
484
 
485
485
  The [`backfill` kit](https://github.com/ShivaeDev/platform/blob/main/packages/effect-test-sql/src/test-support/migrationStory.ts) in `effect-test-sql` is a library example. Its `create` returns the package's `migrationSteps(migrations)` API, its worker Layer provides PostgreSQL, and `around: withIsolatedDatabase` isolates each story. The `oldSchema` and `existingContacts` traits put contacts with email addresses into the old schema; the `backfill` verb calls `steps.migrateToLatest`. Its [story](https://github.com/ShivaeDev/platform/blob/main/packages/effect-test-sql/src/server/migrationStory.spec.ts) proves that those existing addresses survive the migration into a new table. It runs only when `PLATFORM_EFFECT_TEST_SQL_TEST_DATABASE_URL` is configured; a skipped story proves nothing.
486
486
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shivaedev/test-story",
3
- "version": "0.17.0",
3
+ "version": "0.18.1",
4
4
  "description": "Tests that read like stories over the real engine: a story kit per engine with its own it, traits per feature, and a failure that prints the story, where it stopped and the engine's state",
5
5
  "homepage": "https://github.com/ShivaeDev/platform/tree/main/packages/test-story#readme",
6
6
  "bugs": {
@@ -46,18 +46,18 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@effect/vitest": "4.0.4",
49
- "@shivaedev/quality": "0.30.0",
49
+ "@shivaedev/quality": "0.33.2",
50
50
  "@types/node": "24.19.2",
51
51
  "effect": "4.0.4",
52
- "happy-dom": "20.14.6",
52
+ "happy-dom": "21.0.3",
53
53
  "typescript": "7.0.2",
54
- "vitest": "5.0.3"
54
+ "vitest": "5.0.5"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@effect/vitest": "4.0.4",
58
58
  "effect": "4.0.4",
59
- "happy-dom": "20.14.6",
60
- "vitest": "5.0.3"
59
+ "happy-dom": "21.0.3",
60
+ "vitest": "5.0.5"
61
61
  },
62
62
  "peerDependenciesMeta": {
63
63
  "happy-dom": {