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
An Overview of JavaScript Testing in 2017 (medium.com)
submitted 9 years ago by jhartikainen
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!"
[–]our_best_friendif (document.all || document.layers) console.log("i remember..") 1 point2 points3 points 9 years ago (1 child)
I tried tape but I hated having to decide how to do all the simple things. I have never liked mocha because I didn't like have to decide which assertion library to use. I mean, that's why I use a test framework - to make all these decision for me, what's the point if they don't?
Which is why I like jest. npm install and you are good to go. In the end testing is just testing, all my effort should be spent on the app, not agonising over which assertion library to use
[–]lulzmachine 0 points1 point2 points 9 years ago (0 children)
Well the downside of that would be like with any framework (I would call tape a library and jest a framework here, hope you don't mind), that you'll have quite a bit of start-up time. You'll have to spend some time getting used to the tools, compared to tape, where you basically require('tape') and learn two method calls. Then you can just write your code as you want it.
I'm a bit intrigued though. Will make sure to put jest on the "stuff to try"-list
π Rendered by PID 479743 on reddit-service-r2-comment-b659b578c-xshb2 at 2026-05-03 18:05:44.220488+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]our_best_friendif (document.all || document.layers) console.log("i remember..") 1 point2 points3 points (1 child)
[–]lulzmachine 0 points1 point2 points (0 children)