Skip to content

docs: document automock fallback behavior#1479

Merged
9aoy merged 2 commits into
mainfrom
9aoy/docs-automock-fallback
Jun 29, 2026
Merged

docs: document automock fallback behavior#1479
9aoy merged 2 commits into
mainfrom
9aoy/docs-automock-fallback

Conversation

@9aoy

@9aoy 9aoy commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR documents the rs.mock('./module') auto-mock fallback behavior now available after the Rsbuild/Rspack 2.1.0 upgrade: Rstest checks __mocks__ first, then auto-mocks the target module when no manual mock exists. It also updates the Vitest migration guide to reflect the new parity and adds e2e coverage for the fallback path.

Related Links

#1478
web-infra-dev/rspack#14418

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 26, 2026

Copy link
Copy Markdown

Deploying rstest with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4ce4f4b
Status: ✅  Deploy successful!
Preview URL: https://9608860d.rstest.pages.dev
Branch Preview URL: https://9aoy-docs-automock-fallback.rstest.pages.dev

View logs

@9aoy

9aoy commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 4ce4f4b5bb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@9aoy 9aoy merged commit 5e79dfb into main Jun 29, 2026
13 checks passed
@9aoy 9aoy deleted the 9aoy/docs-automock-fallback branch June 29, 2026 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant