-
-
Couldn't load subscription status.
- Fork 11
docs: update jest api alternative #603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for rstest-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates Jest migration documentation to provide clearer guidance for developers migrating from Jest to Rstest, with enhanced configuration mapping and API alternatives.
- Added configuration mapping section headers and expanded Jest-to-Rstest configuration equivalents table
- Added code transformation examples showing how to migrate from Jest's babel-jest to Rstest's swc configuration
- Added sections for handling done callbacks and timeout settings with specific migration examples
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| website/docs/zh/guide/migration/jest.mdx | Chinese documentation updates with configuration mappings, transformation examples, and API alternatives |
| website/docs/en/guide/migration/jest.mdx | English documentation updates with same enhancements as Chinese version |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| | `testRegex` | [`include`](/config/test/include) | | ||
| | `testMatch` | [`include`](/config/test/include) | | ||
| | `testPathIgnorePatterns` | [`exclude`](/config/test/exclude) | | ||
| | `transformIgnorePatterns` | [`output.externals`](/config/build/output#outputexternals)、[`source.exclude`](/config/build/source#sourceexclude) | |
Copilot
AI
Sep 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mixed language punctuation: using Chinese punctuation '、' in English-style table. Consider using comma ',' for consistency with the table format.
| | `transformIgnorePatterns` | [`output.externals`](/config/build/output#outputexternals)、[`source.exclude`](/config/build/source#sourceexclude) | | |
| | `transformIgnorePatterns` | [`output.externals`](/config/build/output#outputexternals), [`source.exclude`](/config/build/source#sourceexclude) | |
| | `testRegex` | [`include`](/config/test/include) | | ||
| | `testMatch` | [`include`](/config/test/include) | | ||
| | `testPathIgnorePatterns` | [`exclude`](/config/test/exclude) | | ||
| | `transformIgnorePatterns` | [`output.externals`](/config/build/output#outputexternals)、[`source.exclude`](/config/build/source#sourceexclude) | |
Copilot
AI
Sep 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using Chinese punctuation '、' in English documentation. Should use comma ',' or 'and' to separate the two configuration options.
| | `transformIgnorePatterns` | [`output.externals`](/config/build/output#outputexternals)、[`source.exclude`](/config/build/source#sourceexclude) | | |
| | `transformIgnorePatterns` | [`output.externals`](/config/build/output#outputexternals), [`source.exclude`](/config/build/source#sourceexclude) | |
Summary
update jest api alternative.
Related Links
Checklist