Miniprogram Simulate

JSON →
library 1.6.1 ·javascript
verified May 27, 2026

miniprogram-simulate is a testing utility designed to facilitate unit testing for WeChat miniprogram custom components. It addresses the challenges of testing in the miniprogram's unique dual-threaded runtime environment by simulating a single-threaded DOM environment. This approach allows developers to leverage standard JavaScript testing frameworks like Jest, Karma, or Mocha (with JSDOM) to test their miniprogram components. The package essentially recreates the component tree within a DOM environment for easier assertion and interaction. The current stable version is 1.6.1, and it maintains a relatively active release cadence, with minor versions typically released every 1-3 months. Its key differentiator is providing a mock DOM environment for miniprogram components, abstracting away the platform-specific runtime intricacies.

total hits 17
actors 9 distinct systems
last hit 18h ago human
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
2
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇳🇴 Norway · 🇩🇪 Germany · 🇸🇬 Singapore