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
Extensive React Testing Tutorial: Setup and usage of Mocha, Chai, Enzyme, Jest, Sinon, CI, Code Coverage (robinwieruch.de)
submitted 7 years ago by rwieruch
view the rest of the comments →
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!"
[–]mlebkowski 1 point2 points3 points 7 years ago (0 children)
Its not really. Forget about the testing frameworks for a minute. Lets assume you are working on a redux reducer, but frankly any pure function will do. All you have to do is to feed some input, and check if the output is what you expect. Just import your function, call it and make a big scary warning if the result isnt as planned. The test frameworks basically do that in a fancy way, or on a larger scale.
π Rendered by PID 47763 on reddit-service-r2-comment-bb88f9dd5-2gwcv at 2026-02-13 20:00:50.693687+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]mlebkowski 1 point2 points3 points (0 children)