1. vue实现原理,源码解析(中文): https://github.com/DMQ/mvvm
  2. Vue单元测试:https://cn.vuejs.org/v2/guide/unit-testing.html
  3. Actions can return promises (oir rather: always return a Promise),so it should be trivial.

You might be interested in this chapter of the documentation, titled “Composing Actions”

https://vuex.vuejs.org/en/actions.html#composing-actions

  1. https://stackoverflow.com/questions/40165766/returning-promises-from-vuex-actions
  2. 阮一峰讲的测试框架mocha: http://www.ruanyifeng.com/blog/2015/12/a-mocha-tutorial-of-examples.html