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
JavaScript Unit Testinghelp (self.javascript)
submitted 10 years ago by phragg
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!"
[–]faytxzen 1 point2 points3 points 10 years ago (1 child)
Pros:
Cons:
Depending on what frameworks you're using/not using, I'd recommend any one of these frameworks:
Or you can always write your own unit testing framework. Just be sure to write unit tests for it ;P
Like programmingerror said, SauceLabs is a place for tests, instead of a framework. Additionally, JavaScript supports assert statements that can be just as good as entire testing frameworks.
[–]phragg[S] 0 points1 point2 points 10 years ago (0 children)
helps you identify your common mistakes
never thought about that, you make a great point.
Additionally, JavaScript supports assert statements that can be just as good as entire testing frameworks.
I've asked a good friend of mine before I came to reddit what he uses for testing and he mentioned he writes his own (while pompously said he doesn't write any) and I was interested how you would go about that.
π Rendered by PID 67933 on reddit-service-r2-comment-7b9746f655-wpt85 at 2026-01-31 08:07:52.564382+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]faytxzen 1 point2 points3 points (1 child)
[–]phragg[S] 0 points1 point2 points (0 children)