Tagged articles
2 articles
Page 1 of 1
政采云技术
政采云技术
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
Youzan Coder
Youzan Coder
Apr 8, 2018 · Fundamentals

Testing Asynchronous Systems: Strategies and Best Practices

Testing asynchronous systems requires specialized strategies—monitoring callbacks with synchronization primitives and reliable polling with timeouts, delays, and frequencies—to handle nondeterministic execution, avoid flaky assertions, and improve testability by decoupling business logic from periodic scheduling, as demonstrated by real‑world polling implementations for Elasticsearch and MySQL/Redis jobs.

Java TestingPollingasynchronous testing
0 likes · 6 min read
Testing Asynchronous Systems: Strategies and Best Practices