-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
chore(test): migrate from Jest to node:test
#7623
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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
fd17503
to
08785ef
Compare
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.
first batch of review mainly on test env
also instead of maybe take a look for an eslint rule |
Blocked by nodejs/admin#964. Once we get codecov setup, i'll add the action into the PR. |
Lighthouse Results
|
This comment was marked as resolved.
This comment was marked as resolved.
40550ed
to
2466a6e
Compare
(Misclick w/ the auto merge, meant to click on the reviews 😅) |
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.
I think we can get this merged. Although I'd like a codecov preview and maybe confirmation CI will work as expected.
#7623 (comment)
https://github.com/nodejs/nodejs.org/actions/runs/14517876700/job/40731263794?pr=7623 I'll manually deploy a storybook momentarily |
This reverts commit ea2b8b1.
Storybook (via new workflow): |
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.
I tested it locally on macOS and added a few minor comments regarding the import order and grouping. Overall, it looks awesome 🤩
apps/site/components/Blog/BlogPostCard/__tests__/index.test.jsx
Outdated
Show resolved
Hide resolved
apps/site/hooks/react-client/__tests__/useClientContext.test.jsx
Outdated
Show resolved
Hide resolved
apps/site/hooks/react-client/__tests__/useCopyToClipboard.test.jsx
Outdated
Show resolved
Hide resolved
apps/site/hooks/react-client/__tests__/useNotification.test.jsx
Outdated
Show resolved
Hide resolved
packages/ui-components/Common/BasePagination/PaginationListItem/__tests__/index.test.jsx
Outdated
Show resolved
Hide resolved
packages/ui-components/Common/BasePagination/__tests__/index.test.jsx
Outdated
Show resolved
Hide resolved
packages/ui-components/Common/ThemeToggle/__tests__/index.test.jsx
Outdated
Show resolved
Hide resolved
packages/ui-components/Containers/MetaBar/__tests__/index.test.jsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Caner Akdas <canerakdas@gmail.com> Signed-off-by: Aviv Keller <me@aviv.sh>
🫡🥂Follow-up actions:
|
Yep! |
This PR replaces Jest with
node:test
as the test runner.While it's currently marked as a draft, it's functionally complete (aside from some GitHub Actions that still need testing), so feel free to review it as you would a regular PR.The new setup uses
node:test
withtsx
,global-jsdom
, and custom mocks located inapps/site/tests/mocks
and/tests/mocks
. The root-level mocks are shared across multiple packages.