@mpcore/simulator 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/index.d.mts +1152 -91
- package/dist/index.mjs +2808 -422
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -6,4 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
- 直接执行构建后的小程序产物
|
|
8
8
|
- 提供 `App/Page/Component/getApp/getCurrentPages/wx` 的最小宿主模拟
|
|
9
|
+
- 已支持部分常用宿主 API,如导航、request mock(含 delay / abort)、sync/async storage 与 storage info、toast、loading、showModal(含默认确认与可编程 mock 返回)、showActionSheet(含默认选择与可编程取消/选项返回)、`showShareMenu/updateShareMenu/hideShareMenu`、`showTabBar/hideTabBar/showTabBarRedDot/hideTabBarRedDot/setTabBarBadge/removeTabBarBadge`、`setBackgroundTextStyle/setBackgroundColor`、getNetworkType/onNetworkStatusChange/offNetworkStatusChange、`setNavigationBarTitle/setNavigationBarColor/showNavigationBarLoading/hideNavigationBarLoading`、launch/enter options、system info、window/app base info、menu button rect、`wx.canIUse`、`wx.nextTick`
|
|
9
10
|
- 提供面向 e2e/runtime 断言的页面启动、重启与 WXML 查询能力
|
|
11
|
+
- 提供测试节点句柄上的 `tap()`、`trigger()`、`input()`、`change()`、`blur()` 交互辅助方法
|
|
12
|
+
- 提供测试页面/会话句柄上的 `waitForSelector()`、`waitForText()`、`waitForTextGone()`、`waitForData()`、`waitForCurrentPage()` 等轮询等待方法
|