feat(blog): add mocha-to-node-test-runner migration guide - #9088
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryLow Risk Overview The article explains why teams might switch from Mocha to the built-in runner, Node.js ≥18 requirements (and major-version/engine bumps when dropping older Node), which APIs the codemod rewrites ( Reviewed by Cursor Bugbot for commit ea97e4c. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
@nodejs/web-infra what is the Vercel issue ? |
|
@Xstoudi Your PR head is outdate with main, please rebase (it'll fix Vercel) |
| category: migrations | ||
| title: Mocha to Node.js Test Runner | ||
| layout: blog-post | ||
| author: Xstoudi |
There was a problem hiding this comment.
| author: Xstoudi | |
| author: xstoudi |
Can you update the author map?
| ## Node.js Version Requirements | ||
|
|
||
| - Node.js v18.0.0 or later (Node.js test runner is available but marked experimental) | ||
| - Node.js v20.0.0 or later (Node.js test runner is stable) | ||
|
|
||
| > If your package currently supports Node.js versions earlier than v18.0.0, you cannot migrate to the Node.js test runner without dropping support for those versions. | ||
| > This requires bumping the major version of your package AND updating the engines field in your package.json to require Node.js >= v18.0.0. |
There was a problem hiding this comment.
This section isn't needed, since those versions are both EOL
There was a problem hiding this comment.
humm IMO we should keep it because user may have older codebase that use EoL and to update it they can use this codemod.
Description
As titles
Related Issues
No related issue
Check List
pnpm formatto ensure the code follows the style guide.pnpm testto check if all tests are passing.pnpm buildto check if the website builds without errors.