Tagged articles
19 articles
Page 1 of 1
FunTester
FunTester
Jan 9, 2026 · Backend Development

Jest vs Mocha: Which JavaScript Testing Framework Fits Your Project?

This article provides a detailed comparison of Jest and Mocha, covering their core features, performance, flexibility, ecosystem support, and ideal use‑cases, helping developers choose the most suitable JavaScript testing framework for front‑end or back‑end projects.

JavaScriptJestNode.js
0 likes · 16 min read
Jest vs Mocha: Which JavaScript Testing Framework Fits Your Project?
FunTester
FunTester
Sep 26, 2025 · Frontend Development

How to Choose the Right JavaScript Unit Testing Framework for Your Project

This guide explains why unit testing is essential, compares manual and automated testing, outlines the components of JavaScript test frameworks, and provides a step‑by‑step process for selecting the most suitable framework based on project needs and team capabilities.

JavaScriptJestSoftware quality
0 likes · 9 min read
How to Choose the Right JavaScript Unit Testing Framework for Your Project
ELab Team
ELab Team
Sep 2, 2022 · Backend Development

How to Build a Minimal Mocha Test Runner from Scratch

This article walks through the design and implementation of a lightweight Mocha-like test framework for Node.js, covering automated testing concepts, core functions, asynchronous support, suite‑test tree construction, result collection, and verification with code examples and diagrams.

AutomationJavaScriptNode.js
0 likes · 26 min read
How to Build a Minimal Mocha Test Runner from Scratch
转转QA
转转QA
Jan 19, 2022 · Frontend Development

Getting Started with UI Automation Testing Using Puppeteer and Mocha

This tutorial explains how to set up and use Puppeteer together with the Mocha test framework to create, run, and report UI automation test cases for web and H5 applications, covering installation, a demo script, selector handling, and visual test reporting.

JavaScriptNode.jsPuppeteer
0 likes · 6 min read
Getting Started with UI Automation Testing Using Puppeteer and Mocha
政采云技术
政采云技术
Dec 7, 2021 · Frontend Development

A Comprehensive Guide to Frontend Unit Testing with Jest and Mocha

This article introduces the importance of frontend unit testing, presents survey data on current practices, compares popular frameworks like Jest and Mocha, provides step‑by‑step setup instructions, demonstrates code examples for JavaScript, TypeScript and async functions, and explains how to generate coverage reports and use common assertions.

JavaScriptJestcoverage
0 likes · 16 min read
A Comprehensive Guide to Frontend Unit Testing with Jest and Mocha
Youzan Coder
Youzan Coder
Mar 31, 2021 · Frontend Development

Boost UI Test Stability: Practical Puppeteer & Mocha Strategies

This article shares a year‑long experience of UI automation at Youzan, covering how to select stable business scenarios, choose Puppeteer with Mocha, implement robust element locating, handle dynamic data via API interception, apply wait and retry mechanisms, capture screenshots, log responses, and integrate tests into CI pipelines for reliable regression testing.

API interceptionCI integrationPuppeteer
0 likes · 13 min read
Boost UI Test Stability: Practical Puppeteer & Mocha Strategies
WecTeam
WecTeam
Jan 7, 2020 · Frontend Development

Master Vue Testing: From Unit to End-to-End with Mocha, Cypress, and Vue CLI

Learn how to write comprehensive tests for Vue applications—including unit, integration, and end-to-end tests—using Vue CLI, Mocha, Chai, Vue Test Utils, Vuex, Vue Router, Sinon, and Cypress, with practical code examples that demonstrate test setup, mocking, and browser verification.

CypressEnd-to-EndIntegration Tests
0 likes · 17 min read
Master Vue Testing: From Unit to End-to-End with Mocha, Cypress, and Vue CLI
WecTeam
WecTeam
Oct 9, 2019 · Backend Development

Build a Simple Mocha Clone from Scratch: Step‑by‑Step Guide

This article walks through creating a lightweight Mocha‑like testing framework in JavaScript, covering BDD‑style APIs, directory layout, suite and test class design, hook handling, asynchronous support, a runner that traverses the suite‑test tree, and a reporter that outputs test results.

BDDFrameworkJavaScript
0 likes · 21 min read
Build a Simple Mocha Clone from Scratch: Step‑by‑Step Guide
Beike Product & Technology
Beike Product & Technology
May 23, 2019 · Fundamentals

Frontend Automated Testing: A Comprehensive Guide

This article explores four key questions about automated testing: what it is, why it matters, which projects benefit from it, and how to implement it, providing a complete frontend testing framework including unit testing, API testing, functional testing, and benchmark testing.

API testingAutomated TestingReact Testing
0 likes · 16 min read
Frontend Automated Testing: A Comprehensive Guide
Liulishuo Tech Team
Liulishuo Tech Team
Dec 15, 2017 · Frontend Development

Mastering Frontend Unit Testing: Mocha vs Jest and Practical Tips

This article explores why unit testing is essential for frontend projects, compares Mocha and Jest across assertions, coverage, environment setup, mocking, snapshots, and watch mode, and offers practical guidance on choosing tools, writing maintainable tests, and balancing coverage with development speed.

JavaScriptJestcoverage
0 likes · 19 min read
Mastering Frontend Unit Testing: Mocha vs Jest and Practical Tips
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Aug 11, 2016 · Frontend Development

Master JavaScript Test Cases: TDD, BDD, Mocha, Should, Nock, Istanbul

This guide explains why test cases are essential, compares TDD and BDD agile approaches, and introduces key frontend testing tools—including Mocha for test suites, Should for assertions, Nock for HTTP mocking, and Istanbul for coverage—while providing code examples and best‑practice recommendations for writing maintainable, high‑quality tests.

BDDJavaScriptTDD
0 likes · 8 min read
Master JavaScript Test Cases: TDD, BDD, Mocha, Should, Nock, Istanbul
Node Underground
Node Underground
Dec 15, 2015 · Backend Development

Mastering Multi‑Process Code Coverage in Node.js with Istanbul

Learn how to achieve comprehensive code coverage for multi‑process Node.js applications by using Istanbul, instrumenting child processes, writing Mocha tests, and merging coverage reports, with detailed examples of master‑worker RPC, custom fork hacks, and package.json scripts for automated testing.

IstanbulNode.jscode coverage
0 likes · 12 min read
Mastering Multi‑Process Code Coverage in Node.js with Istanbul