[{"data":1,"prerenderedAt":209},["ShallowReactive",2],{"project-22263314":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":28,"sentiment":29,"stance_mix":30,"scored_comments":35,"aspects":36,"strip":41,"post_text":43,"what":44,"said":81,"maker_in_thread":141,"shape":143,"grid":147,"attempts":171,"same_week":172,"maker_shows":144,"maker_hidden":201,"reader_version":202,"card":203},"22263314","Baretest","A Minimalistic Alternative to Jest","title","Show HN: Baretest – A Minimalistic Alternative to Jest","https:\u002F\u002Fvolument.com\u002Fbaretest","volument.com","tipiirai",1581050993,2020,18,12,1790,3028,60,"shown","dev_tools","test runner","library",[24,25,26,27],"javascript testing","jest alternative","minimal test runner","node testing","mixed",0.094,{"positive":31,"neutral":32,"mixed":33,"critical":34},4,5,0,2,11,{"idea":37,"docs":39,"performance":40},{"positive":31,"critical":38},1,{"positive":33,"critical":33},{"positive":33,"critical":38},[32,42,32,42,42,32,38,33,42,38,42,32],3,null,{"problem":45,"audience":64,"pricing":43,"motivation":43,"time_to_build":43,"stack":72,"openness":80,"stage":80,"team_size":80},{"value":46,"source":47,"evidence":48},"Jest is large and heavy for simple testing needs","inferred",[49,53,57,61],{"id":50,"by":51,"text":52},"22263367","usually_wrong","> Jest is 57,540 lines of TypeScript Jesus. Didn't know it is _that_ big.",{"id":54,"by":55,"text":56},"22273166","lmiller1990","Considering the huge amount of features, and the LOC added for type definitions etc (when compared to regular JS) it isn't that surprising.",{"id":58,"by":59,"text":60},"22274574","volument","I wouldn't be surprised to see a test runner with the same features done in 1000–5000 lines.",{"id":62,"by":59,"text":63},"22273912","True. However, according to \"The State of JavaScript\" [1] Jest is the most popular option these days and it is chosen because it is simple, lightweight, fast, and easy [2] — all…",{"value":65,"source":47,"evidence":66},"JavaScript developers wanting a lightweight test runner",[67,68],{"id":62,"by":59,"text":63},{"id":69,"by":70,"text":71},"22274431","tmikaeld","This is actually something I've been looking for, to be able to test script size constrained serverless scripts! Does it work when minified, or does it need node? (By the way,…",[73],{"value":74,"source":75,"evidence":76},"Node.js","commenter",[77],{"id":78,"by":59,"text":79},"22274476","Great to hear! Can you shed some light on \"script size constrained serverless scripts\"? Would possibly make a good FAQ entry. And yes. Bareserver needs Node currently and is not…","unknown",{"praise":82,"objections":94,"requests":113,"questions":123,"alternatives":128},[83,90],{"value":84,"source":75,"evidence":85},"Lightweight and useful for testing size-constrained serverless scripts",[86,87],{"id":69,"by":70,"text":71},{"id":88,"by":70,"text":89},"22274805","My use case is for Cloudflare Workers specifically, they have a max-size of 1MB per script and even while doing tests locally in node - the actual worker behave differently, so…",{"value":91,"source":75,"evidence":92},"Small codebase compared to Jest",[93],{"id":58,"by":59,"text":60},[95,104,108],{"value":96,"source":75,"evidence":97},"Not a direct alternative to Jest, which offers far more features",[98,101],{"id":99,"by":55,"text":100},"22273273","I'm not this is really an alternative, at least a direct alternative, to Jest. Jest is much larger - but you get a LOT more functionality, so this isn't really surprising. You…",{"id":102,"by":55,"text":103},"22275381","In that case, will this really cut down on time to see the test result? Won't I have to trigger my TS\u002FReact build, then run the test (two separate actions, difficult to automate…",{"value":105,"source":75,"evidence":106},"Benchmark is too basic to prove speed claims",[107],{"id":99,"by":55,"text":100},{"value":109,"source":75,"evidence":110},"Setting up transpiling and DOM tooling still slows tests",[111,112],{"id":99,"by":55,"text":100},{"id":102,"by":55,"text":103},[114,119],{"value":115,"source":75,"evidence":116},"Support for minified scripts and client-side testing",[117,118],{"id":69,"by":70,"text":71},{"id":78,"by":59,"text":79},{"value":120,"source":75,"evidence":121},"Better benchmarks covering real examples",[122],{"id":99,"by":55,"text":100},[124],{"value":125,"source":75,"evidence":126},"Does it work with minified code without Node?",[127],{"id":69,"by":70,"text":71},[129,134],{"value":130,"source":75,"evidence":131},"Jest",[132,133],{"id":99,"by":55,"text":100},{"id":62,"by":59,"text":63},{"value":135,"source":75,"evidence":136},"Tape",[137],{"id":138,"by":139,"text":140},"22273355","k__","Seems more like an alternative for Tape to me.",{"comments":33,"answered":33,"key":142},[],{"commenters":144,"max_depth":42,"maker_replies":33,"first_comment_mins":145,"lifespan_hours":146},6,10,32,[148,150,152,153,155,156,157,159,163,166,168,170],[69,33,32,149,70,33],"project\u002Fpositive\u002Fidea",[78,33,42,151,59,33],"maker\u002Fneutral\u002Fdocs",[88,33,32,149,70,33],[50,38,42,154,51,33],"project\u002Fneutral\u002Fnone",[54,38,42,154,55,33],[58,38,32,149,59,33],[99,34,38,158,55,33],"project\u002Fcritical\u002Fidea",[160,34,33,161,162,33],"22273664","commenter\u002Fneutral\u002Fnone","jessaustin",[164,34,42,165,59,33],"22273881","maker\u002Fneutral\u002Fperformance",[102,34,38,167,55,33],"project\u002Fcritical\u002Fperformance",[138,42,42,169,139,33],"project\u002Fneutral\u002Fidea",[62,42,32,149,59,33],[],[173,177,181,186,191,196],{"id":174,"name":175,"points":176,"category":20},"22306996","Autocode",247,{"id":178,"name":179,"points":180,"category":20},"22288276","geoman.io",214,{"id":182,"name":183,"points":184,"category":185},"22279308","HDMI",195,"hardware",{"id":187,"name":188,"points":189,"category":190},"22263758","LibreLingo",159,"learning_science",{"id":192,"name":193,"points":194,"category":195},"22287174","ssh-over-ssm",131,"infrastructure",{"id":197,"name":198,"points":199,"category":200},"22268436","MIDAS",118,"ai",false,"v2",{"id":204,"name":5,"line":6,"ai":201,"cat":20,"year":13,"points":14,"comments":15,"rec":28,"s":205,"top":18,"kw":206,"maker":11,"domain":10,"tier":19,"attempts":33,"strip":207,"url":9,"mix":208,"praise":84,"objection":96,"sub":21},22263314,0.09,[24,25,26,27],"535335103135",[31,32,33,34],1793991003238]