-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature e2e #55
Feature e2e #55
Conversation
pagnkelly
commented
Nov 25, 2022
- 增加e2e测试插件
- 增加ts模块有测试模块时,tsconfig增加jest的类型校验
}) | ||
|
||
api.extendPackage({ | ||
devDependencies: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这部分的依赖看起来应该是 vue-cli-plugin-mpx-e2e-test
这个插件自身的依赖,所以感觉放到这个插件自身的 package.json
的 dependencies
里面去收敛管理这些依赖比较合理一些。
因为通过 api.extendPackage
是改的业务项目的 package.json,那么会遇到的场景就是这个插件相关的依赖升级,那么业务项目只需要升级 vue-cli-plugin-mpx-e2e-test
这个插件的版本即可,然后对应的依赖也得到更新。这样业务项目就不再需要单独关心到底升级具体哪个插件的版本。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
看起来其他有几个插件也是通过 api.extendPackge
去管理依赖,我们这边也按这个策略优化一下。