feat: vite upgrade from 4.4 to 6.2 & add vitest@2.1.1#335
Open
LeonardoSya wants to merge 6 commits intodevelopfrom
Open
feat: vite upgrade from 4.4 to 6.2 & add vitest@2.1.1#335LeonardoSya wants to merge 6 commits intodevelopfrom
LeonardoSya wants to merge 6 commits intodevelopfrom
Conversation
Contributor
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

🤔 这个 PR 的性质是?
🔗 相关 Issue
#22
💡 需求背景和解决方案
未来需引入vitest,依赖vite版本 > 5,现在是vite 4.5,考虑到流水线仅支持node 18,并且参考 tdesign-react 的vite 版本,决定升级到vite 6.2
引入 vitest@2.1.1,和 tdesign-react 保持版本一致
引入 happy-dom, @open-wc/testing 依赖,用于更好地支持 webc 的单测能力
新增 vitest.config.ts 单测配置,并编写了 button 组件的单测作示范
📝 更新日志
feat: vite upgrade to 6.2
feat: 引入vitest
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单