-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: 单元测试增加jsdom相关测试 #34
Merged
Merged
Conversation
This file contains 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
Coverage Summary
File Coverage
|
liunnn1994
approved these changes
Jul 5, 2023
Closes #35 |
alanwhy
approved these changes
Jul 11, 2023
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.
LGTM
77881f0
to
2161175
Compare
y |
alanwhy
added a commit
that referenced
this pull request
Jul 19, 2023
* ci: 新增 action 手动触发 * ci: 新增手动 action 提示 * chore(release): 1.1.0-beta.1 [skip ci] # [1.1.0-beta.1](v1.0.0...v1.1.0-beta.1) (2023-06-14) ### Features * 添加文档搜索功能 ([#24](#24)) ([9248fb6](9248fb6)) * docs: update README.md (#17) * feat: 计算文字宽度 ✅ Closes: #15 * chore(release): 1.0.0-development.1 [skip ci] # 1.0.0-development.1 (2023-05-25) ### Features * 清除历史日志,项目迁移 ([5ec0f43](5ec0f43)) * 计算文字宽度 ([b916185](b916185)), closes [#15](#15) * 重置版本号 ([55def4a](55def4a)) * docs: update README.md --------- Co-authored-by: liu <[email protected]> Co-authored-by: liu <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: wuhaoyuan <[email protected]> * ci: 修改触发单元测试覆盖率的分支 old:main -> new:development * ci: 兼容新版 vitest vitest-dev/vitest#3339 * ci: 测试覆盖率前生成 banner * test: 单元测试更新 (#28) Co-authored-by: lyj <[email protected]> * docs: readme update (#30) Co-authored-by: wuhaoyuan <[email protected]> * build: 使用 pnpm 替代 yarn (#31) * feat: 异步加载文件成功提示信息 (#32) Co-authored-by: wuhaoyuan <[email protected]> Co-authored-by: liu <[email protected]> * feature: 更新 load 方法,并修改 vite 打包暴露的全局变量名称为 niUtils (#33) * refactor: 修改默认暴露名称 * fix: 修改load的函数 --------- Co-authored-by: wuhaoyuan <[email protected]> Co-authored-by: wuhaoyuan <[email protected]> * feat: 补充单元测试并增加 e2e 相关测试 (#34) * feat: 单元测试增加jsdom相关测试 * test: 添加 e2e 的测试并使用 eslint 重新格式化整个项目 * feat: 新增获取元素样式的值的函数 * test: 修复错误的 computedTextWidth 测试用例逻辑 * ci: 添加 cypress 的缓存 --------- Co-authored-by: lyj <[email protected]> Co-authored-by: liunian <[email protected]> --------- Co-authored-by: liunian <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: liu <[email protected]> Co-authored-by: wuhaoyuan <[email protected]> Co-authored-by: 李彦杰 <[email protected]> Co-authored-by: lyj <[email protected]> Co-authored-by: wuhaoyuan <[email protected]>
liunnn1994
added a commit
that referenced
this pull request
Jul 19, 2023
* publish (#38) * ci: 新增 action 手动触发 * ci: 新增手动 action 提示 * chore(release): 1.1.0-beta.1 [skip ci] # [1.1.0-beta.1](v1.0.0...v1.1.0-beta.1) (2023-06-14) ### Features * 添加文档搜索功能 ([#24](#24)) ([9248fb6](9248fb6)) * docs: update README.md (#17) * feat: 计算文字宽度 ✅ Closes: #15 * chore(release): 1.0.0-development.1 [skip ci] # 1.0.0-development.1 (2023-05-25) ### Features * 清除历史日志,项目迁移 ([5ec0f43](5ec0f43)) * 计算文字宽度 ([b916185](b916185)), closes [#15](#15) * 重置版本号 ([55def4a](55def4a)) * docs: update README.md --------- Co-authored-by: liu <[email protected]> Co-authored-by: liu <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: wuhaoyuan <[email protected]> * ci: 修改触发单元测试覆盖率的分支 old:main -> new:development * ci: 兼容新版 vitest vitest-dev/vitest#3339 * ci: 测试覆盖率前生成 banner * test: 单元测试更新 (#28) Co-authored-by: lyj <[email protected]> * docs: readme update (#30) Co-authored-by: wuhaoyuan <[email protected]> * build: 使用 pnpm 替代 yarn (#31) * feat: 异步加载文件成功提示信息 (#32) Co-authored-by: wuhaoyuan <[email protected]> Co-authored-by: liu <[email protected]> * feature: 更新 load 方法,并修改 vite 打包暴露的全局变量名称为 niUtils (#33) * refactor: 修改默认暴露名称 * fix: 修改load的函数 --------- Co-authored-by: wuhaoyuan <[email protected]> Co-authored-by: wuhaoyuan <[email protected]> * feat: 补充单元测试并增加 e2e 相关测试 (#34) * feat: 单元测试增加jsdom相关测试 * test: 添加 e2e 的测试并使用 eslint 重新格式化整个项目 * feat: 新增获取元素样式的值的函数 * test: 修复错误的 computedTextWidth 测试用例逻辑 * ci: 添加 cypress 的缓存 --------- Co-authored-by: lyj <[email protected]> Co-authored-by: liunian <[email protected]> --------- Co-authored-by: liunian <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: liu <[email protected]> Co-authored-by: wuhaoyuan <[email protected]> Co-authored-by: 李彦杰 <[email protected]> Co-authored-by: lyj <[email protected]> Co-authored-by: wuhaoyuan <[email protected]> * feat: 修改 keywords * chore(release): 1.1.0 [skip ci] # [1.1.0](v1.0.0...v1.1.0) (2023-07-19) ### Features * 修改 keywords ([11c4e02](11c4e02)) * 添加文档搜索功能 ([#24](#24)) ([9248fb6](9248fb6)) * fix: 修复 preinstall 导致的错误 --------- Co-authored-by: alanwhy <[email protected]> Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: liu <[email protected]> Co-authored-by: wuhaoyuan <[email protected]> Co-authored-by: 李彦杰 <[email protected]> Co-authored-by: lyj <[email protected]> Co-authored-by: wuhaoyuan <[email protected]>
ni-team-bot
pushed a commit
that referenced
this pull request
Jul 19, 2023
🎉 This PR is included in version 1.2.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
development
分支。Closes #35