You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agents/skills/testing/SKILL.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,16 @@ Important:
79
79
- Keep fixtures minimal and representative of the behavior under test
80
80
- Don't create near-duplicate fixtures just to add one extra test case
81
81
82
+
## E2E rstest spawns with persistent `dist/.rstest-temp/`
83
+
84
+
A fixture that enables `performance.buildCache` (or `dev.writeToDisk: true`) forces rstest to persist the built bundle under `<cwd>/dist/.rstest-temp/`. If sibling test files share that `cwd`, those persistent writes race against any test asserting on the default path. Other disk writers like coverage or blob reporters land in `<cwd>/coverage/` or `<cwd>/.rstest-reports/` — different surfaces, not covered by this rule.
85
+
86
+
When your fixture enables persistent build output:
87
+
88
+
- Set `cwd` to the fixture subdirectory, not the parent test directory.
89
+
- In that fixture's config, drop any `include` referencing paths outside the fixture (e.g. `'./fixtures/<name>/index.test.ts'`). Fixture-local globs like `'./*.test.ts'` are fine.
90
+
- Read `dist/.rstest-temp/` assertions from that isolated fixture dir, not from a shared parent.
91
+
82
92
## Snapshot policy
83
93
84
94
- Only update snapshots when the behavioral change is **intentional**
0 commit comments