Skip to content

Commit aa66120

Browse files
committed
chore(rstest-skill): remove ProvidedExports Troubleshooting
1 parent 6923695 commit aa66120

File tree

3 files changed

+7
-62
lines changed

3 files changed

+7
-62
lines changed

skills/migrate-to-rstest/SKILL.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Migrate Jest- or Vitest-based tests and configuration to Rstest with minimal beh
3232
- Global API replacement rules: `references/global-api-migration.md`
3333
- Known compatibility pitfalls: `references/rstest-compat-pitfalls.md`
3434
5. Check type errors
35-
6. Run tests and fix deltas (if mocks fail unexpectedly under Rspack, see `references/provided-exports-troubleshooting.md`)
35+
6. Run tests and fix deltas
3636
7. Remove legacy test runner dependency/config only after Rstest is green
3737
8. Summarize changes
3838

@@ -85,8 +85,7 @@ stop and provide:
8585

8686
- Run the test suite and fix failures iteratively.
8787
- Fix configuration and resolver errors first, then address mocks/timers/snapshots, and touch test logic last.
88-
- If mocks fail for re-exported modules under Rspack, use:
89-
`references/provided-exports-troubleshooting.md`
88+
- If mocks fail for re-exported modules under Rspack, first check whether the project is pinned to `rstest < 0.9.3`.
9089
- Before broad test rewrites, check known pitfalls in:
9190
`references/rstest-compat-pitfalls.md`
9291

skills/migrate-to-rstest/references/provided-exports-troubleshooting.md

Lines changed: 0 additions & 55 deletions
This file was deleted.

skills/migrate-to-rstest/references/rstest-compat-pitfalls.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ Use this reference when migration passes static replacement but runtime tests st
55
For general migration pitfalls (globals mode, setup adapters, mock factory/hoisting, path resolution), use the official Vitest migration guide first:
66
https://rstest.rs/guide/migration/vitest
77

8-
## Re-export mock target mismatch under Rspack
8+
## Re-export mock target mismatch under Rspack (legacy)
99

10-
When runtime resolves through source module instead of re-export module, migrated mocks may appear ignored.
10+
This issue was fixed in `rstest v0.9.3`.
11+
Treat this section as a legacy note only for projects pinned to `rstest < 0.9.3`.
1112

12-
- First follow `references/provided-exports-troubleshooting.md`.
13-
- If needed, temporarily stabilize build optimization and re-target mock to the actually resolved module.
13+
- First confirm the installed Rstest version.
14+
- If the project is still on an older version, upgrade to `rstest >= 0.9.3` before debugging mock behavior further.

0 commit comments

Comments
 (0)