目录 教程 起步 常用技巧 鼠标、键盘以及其它 DOM 事件 选择一个测试运行器 用 Jest 测试单文件组件 用 Mocha 和 webpack 测试单文件组件 用 Karma 测试单文件组件 测试异步行为 配合 Vue Router 使用 * 配合 Vuex 使用 API mount shallowMount render renderToString 挂载选项 context slots scopedSlots stubs mocks localVue attachToDocument attrs listeners provide sync 其它选项 Wrapper attributes classes contains emitted emittedByOrder exists destroy find findAll html is isEmpty isVueInstance name props setData setMethods setProps text trigger isVisible WrapperArray at contains exists destroy filter is isEmpty isVueInstance setData setMethods setProps trigger isVisible 组件 TransitionStub TransitionGroupStub RouterLinkStub 选择器 createLocalVue 配置