Closed this issue 4 years ago · 1 comments
组件emit要怎么测?有类似于vue的emitted的方法吗? 现在只能mock一个父组件来测吗?
支持了事件监听接口:https://github.com/wechat-miniprogram/miniprogram-simulate/blob/master/docs/api.md#addeventlistenereventname-handler-usecapture
相关用例:https://github.com/wechat-miniprogram/j-component/blob/927bdc8e5441ad6dcffc30a7e34976d936b9b896/test/component.test.js#L387