@forgebook/testing 0.2.1 → 0.2.3

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.
Files changed (2) hide show
  1. package/README.md +4 -1
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -11,7 +11,7 @@ tests:
11
11
  - **on the server** (Vitest), each story rendered to a string, so no component reads `window` or `document` while it
12
12
  renders, and its controls checked against its args.
13
13
 
14
- **Requirements:** `forgebook` · Vite 8 · `@playwright/test` 1.64+ · Vitest 5 · Docker for the visual tests ·
14
+ **Requirements:** `forgebook` · Vite 8.3.4+ · `@playwright/test` 1.64+ · Vitest 5 · Docker for the visual tests ·
15
15
  [MIT licence](https://github.com/ensiria/forgebook/blob/develop/packages/testing/LICENSE)
16
16
 
17
17
  ```sh
@@ -149,6 +149,9 @@ export default defineConfig({
149
149
  });
150
150
  ```
151
151
 
152
+ The plugin keeps a module that imports story files out of Vitest's module cache (`fsModuleCache`), as a group must be
153
+ listed anew on each run; every other module stays cached.
154
+
152
155
  `storyServerTests` also takes `wrap`: a second pass with every story inside a decorator (a provider with a partial
153
156
  translation catalogue), its HTML checked.
154
157
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgebook/testing",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Tests from a package's stories: each story and variant in the browser with axe, spills and overlays, screenshots, and each story rendered on the server.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -80,13 +80,13 @@
80
80
  "dependencies": {
81
81
  "@axe-core/playwright": "4.14.0",
82
82
  "@ensiria/cli-kit": "^0.1.1",
83
- "@forgebook/story-format": "0.2.1"
83
+ "@forgebook/story-format": "0.2.3"
84
84
  },
85
85
  "peerDependencies": {
86
86
  "@playwright/test": "^1.64.0",
87
- "vite": "^8.0.0",
87
+ "vite": "^8.3.4",
88
88
  "vitest": "^5.0.0",
89
- "forgebook": "^0.3.0"
89
+ "forgebook": "^0.3.2"
90
90
  },
91
91
  "devDependencies": {
92
92
  "@playwright/test": "1.64.1",
@@ -96,8 +96,8 @@
96
96
  "vite": "8.3.5",
97
97
  "vitest": "5.0.5",
98
98
  "@forgebook/typescript-config": "0.0.0",
99
- "@forgebook/tools": "0.0.0",
100
- "forgebook": "0.3.0"
99
+ "forgebook": "0.3.2",
100
+ "@forgebook/tools": "0.0.0"
101
101
  },
102
102
  "publishConfig": {
103
103
  "access": "public"