Tagged articles
39 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?
Ctrip Technology
Ctrip Technology
Oct 30, 2025 · Operations

How BDD‑Driven HTA Automation Boosts Test Coverage and Cuts Costs

This article details a practical transformation from manual to automated testing using Jest and BDD‑generated HTA, explaining the challenges, technical solutions, mock‑data management, pipeline integration, and measurable results such as higher coverage, lower development cost, and faster release cycles.

Automated TestingBDDHTA
0 likes · 28 min read
How BDD‑Driven HTA Automation Boosts Test Coverage and Cuts Costs
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
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 15, 2024 · Frontend Development

Automating Visual Regression Testing for Frontend Component Libraries with jest-image-snapshot and jest-puppeteer

This article explains how to set up and use jest-image-snapshot together with jest-puppeteer to automate visual regression testing for atomic frontend components, covering configuration, code examples, CI integration, and best practices for preventing unintended UI changes.

JestPuppeteerUI automation
0 likes · 24 min read
Automating Visual Regression Testing for Frontend Component Libraries with jest-image-snapshot and jest-puppeteer
HelloTech
HelloTech
Jan 4, 2024 · Frontend Development

Introduction to Front-End Unit Testing with Jest

This guide introduces front‑end unit testing with Jest, explaining TDD and BDD concepts, installation, writing simple and ES6/TypeScript tests, configuring coverage, using common matchers, and employing mock functions, timers, and module mocking to ensure reliable, maintainable code.

JestMockingTDD
0 likes · 14 min read
Introduction to Front-End Unit Testing with Jest
37 Interactive Technology Team
37 Interactive Technology Team
Dec 29, 2023 · Frontend Development

Why Unit Testing is Needed and How to Write Front‑End Unit Tests with Jest

Unit testing prevents recurring bugs in large front‑end projects by forcing modular, testable code, and with Jest—especially for Vue—developers can quickly write, run, and enforce comprehensive tests covering props, methods, slots, Vuex, and coverage thresholds, while AI tools can scaffold boilerplate test files.

Jestfrontendtest coverage
0 likes · 14 min read
Why Unit Testing is Needed and How to Write Front‑End Unit Tests with Jest
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 9, 2023 · Frontend Development

Comprehensive Guide to Building a React Component and Utility Library with dumi2 (Setup, Development, Testing, and Deployment)

This article provides a step‑by‑step tutorial on using dumi2 to create a React component and function library, covering project initialization, component and style development, documentation generation, Jest unit testing, Ant Design integration, utility functions, test optimization, and final packaging and deployment to both a static site and npm.

Component LibraryDocumentationJest
0 likes · 27 min read
Comprehensive Guide to Building a React Component and Utility Library with dumi2 (Setup, Development, Testing, and Deployment)
政采云技术
政采云技术
May 17, 2023 · Frontend Development

Unlock Front‑End Quality: A Complete Guide to Jest Automated Testing

This article explains automated testing concepts, compares unit, integration, TDD and BDD approaches, shows how to write Jest test cases without a framework, configure Jest, use matchers, handle async code, hooks, mocks, timers, snapshots, DOM testing, and provides practical code examples and repository links.

JestMockingasynchronous testing
0 likes · 28 min read
Unlock Front‑End Quality: A Complete Guide to Jest Automated Testing
360 Tech Engineering
360 Tech Engineering
May 9, 2023 · Frontend Development

Why Use AI to Write Unit Tests for React Hooks

This article explains the motivation for writing unit tests for shared React hook modules, demonstrates how an AI assistant in the Cursor IDE can generate Jest test cases from a repository, and details the step‑by‑step process of configuring the environment, fixing failing tests, and reflecting on AI's current limitations.

JestReactai
0 likes · 10 min read
Why Use AI to Write Unit Tests for React Hooks
ELab Team
ELab Team
Mar 22, 2023 · Frontend Development

Mastering Component Unit Testing with Jest and Testing Library

This article explains why unit testing is essential for reusable components, introduces Jest fundamentals, demonstrates how to write and run tests with code examples, and shows how to enhance UI component testing using @testing-library/react, @testing-library/user-event, and @testing-library/jest-dom, providing a complete workflow for reliable front‑end development.

JestMockfrontend
0 likes · 12 min read
Mastering Component Unit Testing with Jest and Testing Library
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 12, 2022 · Frontend Development

Implementing a Simplified Qiankun JavaScript Sandbox: Snapshot, Singular Proxy, and Multiple Proxy Sandboxes

This article walks through building a lightweight Qiankun JS sandbox by first explaining sandbox principles, then creating a snapshot sandbox, a singular proxy sandbox that records changes via ES6 Proxy, and finally a multiple‑proxy sandbox that isolates each micro‑frontend with its own fake window, complete with test cases and setup instructions.

JavaScriptJestMicro Frontends
0 likes · 16 min read
Implementing a Simplified Qiankun JavaScript Sandbox: Snapshot, Singular Proxy, and Multiple Proxy Sandboxes
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 11, 2022 · Frontend Development

Testing React Hooks with Jest and React Testing Library

This article provides a comprehensive guide on unit testing custom React Hooks using Jest, renderHook, act, and the React Testing Library, covering examples such as useCounter, useEventListener, useHover, and useMouse with detailed code snippets and best‑practice recommendations.

JavaScriptJestReact
0 likes · 16 min read
Testing React Hooks with Jest and React Testing Library
Taobao Frontend Technology
Taobao Frontend Technology
Sep 14, 2022 · Frontend Development

Mastering Frontend Automated Testing: From Unit to E2E

This comprehensive guide explains why automated testing is essential for frontend development, outlines the differences between unit, integration, component, and end‑to‑end testing, and recommends practical tools and frameworks such as Jest, Vitest, Testing Library, Cypress, Playwright, and Puppeteer.

CypressJeste2e
0 likes · 21 min read
Mastering Frontend Automated Testing: From Unit to E2E
ByteFE
ByteFE
Jun 20, 2022 · Frontend Development

An Introduction to Frontend Testing: Types, Tools, and Best Practices

This article explains what frontend testing is, why it is essential, outlines the various testing types such as unit, integration, end‑to‑end, acceptance, visual regression, accessibility, performance and cross‑browser testing, recommends tools like Jest and Puppeteer, and offers practical advice for building an effective testing strategy.

Jestautomatione2e
0 likes · 22 min read
An Introduction to Frontend Testing: Types, Tools, and Best Practices
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 24, 2022 · Backend Development

How to Properly Create a Qualified npm Package with TypeScript: A Step‑by‑Step Guide

This article walks readers through the complete process of building a well‑structured npm package using TypeScript, covering project initialization, package.json configuration, essential tooling such as husky, lint‑staged, eslint, prettier, unit testing with Jest, and best practices for documentation and publishing.

ESLintJestLibrary
0 likes · 15 min read
How to Properly Create a Qualified npm Package with TypeScript: A Step‑by‑Step Guide
BaiPing Technology
BaiPing Technology
Jan 10, 2022 · Frontend Development

Master Frontend Unit Testing with Jest and Vue Test Utils

This guide introduces unit testing for frontend projects, explains its benefits, compares popular frameworks like Jest, Mocha, and Karma, and provides step‑by‑step instructions for installing and configuring Jest with Vue Test Utils, including code examples and best‑practice tips.

Jestfrontendtest automation
0 likes · 9 min read
Master Frontend Unit Testing with Jest and Vue Test Utils
政采云技术
政采云技术
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
GrowingIO Tech Team
GrowingIO Tech Team
Aug 19, 2021 · Frontend Development

Choosing the Right React Testing Tool: Jest vs Enzyme vs RTL

This article compares React component testing approaches, explains the difference between unit testing and end‑to‑end testing, evaluates popular tools such as Jest, Enzyme, and React Testing Library, and provides practical code examples, snapshot testing tips, and integration with Storybook.

EnzymeJestReact
0 likes · 12 min read
Choosing the Right React Testing Tool: Jest vs Enzyme vs RTL
New Oriental Technology
New Oriental Technology
Jun 7, 2021 · Frontend Development

Introduction to Unit Testing with Jest and React Testing Library

This article explains the concept of unit testing, introduces the Jest framework and its configuration, demonstrates common APIs, matchers, asynchronous testing, mocking, coverage reporting, and shows how to test React components using React Testing Library with practical code examples.

JavaScriptJestReact Testing Library
0 likes · 18 min read
Introduction to Unit Testing with Jest and React Testing Library
37 Mobile Game Tech Team
37 Mobile Game Tech Team
Jan 29, 2021 · Frontend Development

Why Rollup Beats Webpack for Building a Simple JS Library

This article compares Webpack and Rollup, explains why Rollup’s tree‑shaking and ES6 module support make it better for a lightweight JavaScript utility library, and provides a step‑by‑step guide to set up the project with TypeScript, ESLint, Prettier, Husky, Commitlint and Jest testing.

ESLintJavaScriptJest
0 likes · 14 min read
Why Rollup Beats Webpack for Building a Simple JS Library
Alibaba Terminal Technology
Alibaba Terminal Technology
Jan 25, 2021 · Frontend Development

Boost Your Unit Testing Efficiency with VSCode Plugins and Jest Best Practices

This article explains why unit testing is essential, introduces VSCode plugins and Jest configurations that speed up test execution, outlines common testing pitfalls, and details practical test‑case design methods such as equivalence partitioning, boundary‑value analysis, and error‑guessing, while also covering stubs, mocks, and CI integration.

JestMockVS Code
0 likes · 18 min read
Boost Your Unit Testing Efficiency with VSCode Plugins and Jest Best Practices
Zhengtong Technical Team
Zhengtong Technical Team
Aug 14, 2020 · Frontend Development

A Practical Guide to Frontend Testing: Understanding TDD, BDD, and Mastering Jest

This article explores the core principles of frontend testing, comparing Test-Driven Development and Behavior-Driven Development methodologies while providing a step-by-step tutorial on configuring the Jest framework and utilizing its essential matchers to write robust, maintainable unit tests for modern web applications.

Behavior Driven DevelopmentJestfrontend testing
0 likes · 12 min read
A Practical Guide to Frontend Testing: Understanding TDD, BDD, and Mastering Jest
Tencent Music Tech Team
Tencent Music Tech Team
Jun 12, 2020 · Frontend Development

Using Jest for Front-End Unit Testing and Coverage

The article explains how to set up Jest for front‑end unit testing, demonstrates basic test writing, async handling, hooks, snapshot and React component testing, shows coverage configuration and thresholds, compares Jest’s built‑in features to Mocha’s limitations, and offers tips on concurrency, mocking, and test‑driven development.

JavaScriptJestMocking
0 likes · 21 min read
Using Jest for Front-End Unit Testing and Coverage
Ctrip Technology
Ctrip Technology
Jan 16, 2020 · Frontend Development

Comprehensive Guide to Unit Testing in React and React Native Projects

This article presents a complete tutorial on setting up and using Jest, Enzyme, and react‑hooks‑testing‑library for unit testing React and React Native applications, covering environment configuration, simple function tests, lifecycle hooks, mocking, snapshot testing, asynchronous tests, Redux and Hook testing, as well as coverage reporting and CI integration.

EnzymeJestReact
0 likes · 13 min read
Comprehensive Guide to Unit Testing in React and React Native Projects
Tencent Cloud Developer
Tencent Cloud Developer
Sep 6, 2019 · Frontend Development

Exploration and Practice of Frontend Engineering

The article examines modern frontend engineering by detailing its four‑stage lifecycle—development, testing, deployment, maintenance—and reviewing modularization of JavaScript and CSS, component‑based frameworks and Web Components, code and workflow standardization, automation tools, and a real‑world migration to ES6 modules, Rollup, CSS Modules, Jest, and CI pipelines.

CSS ModulesComponentizationJest
0 likes · 40 min read
Exploration and Practice of Frontend Engineering
Programmer DD
Programmer DD
Jun 28, 2019 · Backend Development

Master Elasticsearch with Jest: A Hands‑On Java Client Guide

This tutorial walks you through using Jest, a fluent Java HTTP client for Elasticsearch, covering Maven setup, creating a reusable client, performing CRUD operations, bulk and asynchronous requests, and showcases code examples that illustrate how to manage indices and documents efficiently.

ElasticsearchJestSearch
0 likes · 12 min read
Master Elasticsearch with Jest: A Hands‑On Java Client Guide
Qunar Tech Salon
Qunar Tech Salon
Oct 17, 2018 · Frontend Development

Jest Unit Testing Guide for Front-End Development

This article provides a comprehensive guide to using Jest for front‑end unit testing, covering the lack of tests, benefits, installation, basic assertions, matchers, asynchronous testing, lifecycle hooks, mock functions, module mocking, snapshot testing, and best practices to improve code quality and development efficiency.

JavaScriptJestMocking
0 likes · 15 min read
Jest Unit Testing Guide for Front-End Development
UC Tech Team
UC Tech Team
Oct 3, 2018 · Frontend Development

Create React App 2.0 Released: New Features and Upgrade Guide

Create React App 2.0, launched on October 1, updates core tools like Babel, Webpack, and Jest, adds Sass, CSS Modules, SVG components, optional Service Workers, and provides a clear migration path for both new and existing projects, while supporting modern browsers and optional polyfills.

JestReactbabel
0 likes · 6 min read
Create React App 2.0 Released: New Features and Upgrade 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
Tongcheng Travel Technology Center
Tongcheng Travel Technology Center
Sep 21, 2017 · Frontend Development

Understanding Unit Testing and Jest: Concepts, Types, Tools, and Best Practices

This article explains the fundamentals of unit testing, including its importance, various test types, tool categories, implementation principles, hooks, best‑practice guidelines, and introduces the Jest JavaScript testing framework with installation steps, features, and example test scripts for both synchronous and asynchronous code.

BDDJavaScriptJest
0 likes · 9 min read
Understanding Unit Testing and Jest: Concepts, Types, Tools, and Best Practices
Hujiang Technology
Hujiang Technology
Jul 5, 2017 · Frontend Development

Getting Started with TypeScript and React

This tutorial walks through setting up a TypeScript project with React, covering installation, tsconfig configuration, Webpack and Babel integration, creating a simple component, adding type declarations for third‑party modules, testing with Jest and ts‑jest, and enforcing code style with TSLint.

JestReactTSLint
0 likes · 16 min read
Getting Started with TypeScript and React
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jun 15, 2017 · Frontend Development

Quickly Add Jest Snapshot Tests to Your React Project

This article explains why web releases often miss thorough testing, introduces Jest and its React support, and provides a step‑by‑step guide to implementing snapshot testing and improving unit‑test coverage in modern React applications.

JestReactsnapshot testing
0 likes · 5 min read
Quickly Add Jest Snapshot Tests to Your React Project