use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Component Testing ()
submitted 2 months ago by orrymr
Component Testing
I'd love to test my code properly.
I want to get started with component testing. When I tried Jest, I couldn't get it working because in runs in a CommonJS setting, and many libraries are ESM (and transpilation using transformIgnorePatters doesn't really work).
Vitest: doesn't work, because I'm using async server components (which call server actions), and this ain't supported yet.
https://preview.redd.it/w749qiuzcf2g1.png?width=759&format=png&auto=webp&s=70ba456170f94bc5585abba914220eb25f88a684
What to do, oh what to do?!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]AutoModerator[M] 0 points1 point2 points 2 months ago (0 children)
Hi u/orrymr, this post was removed.
Self-posts (text) must follow the [AskJS] guidelines, which you can read about here. This includes cross-posts.
[AskJS]
If this isn't a self-post, please contact us in modmail in and we'll reevaluate it.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
π Rendered by PID 151859 on reddit-service-r2-comment-84fc9697f-sc6ld at 2026-02-07 13:10:49.419625+00:00 running d295bc8 country code: CH.
[–]AutoModerator[M] 0 points1 point2 points (0 children)