Skip to content

docs: add esm tip when migrating from jest#1032

Merged
9aoy merged 2 commits intomainfrom
jest-esm
Mar 10, 2026
Merged

docs: add esm tip when migrating from jest#1032
9aoy merged 2 commits intomainfrom
jest-esm

Conversation

@9aoy
Copy link
Copy Markdown
Collaborator

@9aoy 9aoy commented Mar 10, 2026

Summary

add esm tip when migrating from jest.

Related Links

Checklist

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

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: defa420701

ℹ️ 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".


If your project is using CommonJS, Rstest still works, but it is recommended to migrate to ESM for better performance and future compatibility.

### ESM vs CJS Mocking
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use sentence case in the new migration subheading

The new heading ### ESM vs CJS Mocking uses title case, but website/AGENTS.md requires sentence-style capitalization for all headings. This is not just stylistic: root linting runs heading-case via check-spell (package.json scripts), so this heading (and its mirrored one in docs/zh/...) can cause the docs lint workflow to fail until it is changed to sentence case (for example, ESM vs CJS mocking).

Useful? React with 👍 / 👎.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Mar 10, 2026

Deploying rstest with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0763577
Status: ✅  Deploy successful!
Preview URL: https://bd0eb288.rstest.pages.dev
Branch Preview URL: https://jest-esm.rstest.pages.dev

View logs

@9aoy 9aoy merged commit c08930e into main Mar 10, 2026
6 checks passed
@9aoy 9aoy deleted the jest-esm branch March 10, 2026 11:53
@9aoy 9aoy mentioned this pull request Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant