javascript - Vue.js 单元测试最佳实践
解决方案
These are not comparable, as each of them serve a different purpose.
From documentation of each of these libraries:
Vue Test Utils is the official unit testing utility library for Vue.js.
... To teach Jest how to process *.vue files, we will need to install and configure the vue-jest preprocessor.
A little helper to unit test Vue components in the open source Cypress.io E2E test runner
If you have no preference and looking for a place to start, then definitely start with official documentation: Choosing a test runner
推荐阅读
- swiftui - 如果操作未立即完成,则 SwiftUI 视图在绑定到 @Published var 时没有动画
- sql - 如何计算元素的平均值
- python - Pyqt5 两个QButton拖放
- c++ - 如何解决悬空的 const ref
- reactjs - 如何在运行时读取通过 docker-compose.yaml 文件传递的反应应用程序中的环境变量?
- angularjs - 是否可以在 Angular 1.7 中创建新的 Promise 对象?
- html - 搜索图标位于表单输入下方
- java - 如何从 Angular 应用程序打开桌面应用程序?
- swift - 将object3d放在海拔位置目标位置
- python - 如何将熊猫数据框从 praw 保存到 xlsx?