Cris Mihalachef3rno64.io·Dec 21, 2023A Modern Node.JS TypeScript Lib Templatef3rno64/node-ts-lib-template Starting a new Node.JS project written in TypeScript in today's software development world is daunting; with the multitude of tools available for testing, linting, deploying, and generating documentation, it is difficult...Discuss·2 likes·516 readsNode.js
Samyak Adityasamyakaditya.hashnode.dev·Oct 12, 2023Why Mocha Might Be a Better Choice Than Jest for Your TestsWhen it comes to JavaScript testing frameworks, two names often stand out in the crowd: Mocha and Jest. Both are highly popular choices among developers, and each has its own set of features and advantages. But, as a developer, you might be wondering...Discuss·34 readsJavaScript
Samyak Adityasamyakaditya.hashnode.dev·Sep 14, 2023Mastering React Component Testing with Mocha: A Comprehensive GuideIntroduction Testing is a crucial part of the software development process. In the world of React, ensuring that your components work as expected is essential for delivering a reliable and bug-free application. One popular testing framework for React...Discussmocha
Al Farhaankhan I Inamdartheonethatstartedlate.hashnode.dev·Sep 7, 2023JavaScript Testing with Mocha: Your Beginner's Guide to Reliable CodeIntroduction: As a developer, ensuring your JavaScript code works flawlessly is a top priority. That's where testing comes in, and one tool that has made testing JavaScript a breeze is Mocha. Meet Mocha: Your Testing Companion Mocha is a JavaScript t...Discuss·42 readsmocha
Jonathan Barnettjonbarnett.hashnode.dev·Jun 5, 2023FeaturedDebugging Javascript Unit Tests with VSCodeDo you just use console.log for everything? When you run code locally, sometimes the easiest way to get the current value of something is console.log to write to a terminal. This is easy. But sometimes, you need more insight into what a variable is r...Medhashis Maiti and 3 others are discussing this4 people are discussing thisDiscuss·68 likes·709 readsNode.js
Fandy Aditya Wiranadev.fandyaditya.com·Apr 25, 2023Unit Testing using Mocha, Sinon, and Chai in NodeJSWe use Mocha as the test framework, Chai for assertions, and Sinon.js for creating Doubles. Here's the code for installation: $ npm install sinon mocha chai --save-dev --save-dev is used because these modules are only needed during development. We d...Discuss·78 readsunit testing
Sumit Kumarsunnyp1201.hashnode.dev·Apr 21, 2023History of JavaScript and EcmaScript?JavaScript Javascript was invented by Brenden Eich in 1995. It was developed for Netscape and became the ECMA-262 standard in 1997. Initially known as the mocha after sometimes its name LiveScript, Netscape changed the name to javascript so they c...Discuss·10 likes·66 readsJavaScript
Raphael Smithprogrammingthestreets.hashnode.dev·Mar 22, 2023Unit Testing: Testing Rejected Promises with MochaTest Driven Development Recently I have taken an interest in TDD(Test Driven Development). It seems to be a stimulating process of writing tests, first, before committing any lines of code to an application. Like most, I am used to the reverse- assum...Discuss·1 like·111 readsJavaScript
James Ochapaocee.hashnode.dev·Feb 28, 2023An overview of software testing with Mocha and Chai using Node.jsLet me ask you a question. Would you be willing to use an untested product? Only those who don't mind minor glitches and occasional hiccups might say yes. A product that hasn't been tested is unpredictable, unreliable, and unable to provide customer ...Discuss·79 readsJavaScript
Miguel Angel Acevedofaulty.dev·Jan 4, 2023pg-mem and uuid_generate_v4() mockpg-mem is an open-source project for javascript (works in Node.js and the browser) where you can mock a Postgres server in memory, is pretty cool to use it on unit and local tests. And it comes with its own limitations, by default, pg-mem has no nati...Discuss·260 readsPostgreSQL