-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 单元测试增加jsdom相关测试 * test: 添加 e2e 的测试并使用 eslint 重新格式化整个项目 * feat: 新增获取元素样式的值的函数 * test: 修复错误的 computedTextWidth 测试用例逻辑 * ci: 添加 cypress 的缓存 --------- Co-authored-by: lyj <liyanjie@cennavi.com.cn> Co-authored-by: liunian <liunian@2077tech.com>
- Loading branch information
1 parent
5e1d04e
commit 0a1c5ed
Showing
70 changed files
with
15,405 additions
and
10,609 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
--- | ||
|
||
name: Bug 提交 | ||
about: 使用此模板来提交一个 bug。 | ||
|
||
--- | ||
|
||
<!-- generated by template DO NOT REMOVE --> | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
--- | ||
|
||
name: 功能请求 | ||
about: 使用此模板来提交一个功能请求。 | ||
|
||
--- | ||
|
||
<!-- generated by template DO NOT REMOVE --> | ||
|
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,6 @@ components.d.ts | |
**/.vitepress/dist | ||
**/.vitepress/cache | ||
coverage | ||
*-coverage | ||
.nyc_output | ||
cypress |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
auto-install-peers=true | ||
registry=https://registry.npmmirror.com | ||
registry=https://registry.npmmirror.com |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,50 @@ | ||
# [1.1.0-beta.1](https://github.com/NI-Web-Infra-Team/common-utils/compare/v1.0.0...v1.1.0-beta.1) (2023-06-14) | ||
|
||
|
||
### Features | ||
|
||
* 添加文档搜索功能 ([#24](https://github.com/NI-Web-Infra-Team/common-utils/issues/24)) ([9248fb6](https://github.com/NI-Web-Infra-Team/common-utils/commit/9248fb662831c73ff6f5dc29bc633b3cfac84baf)) | ||
- 添加文档搜索功能 ([#24](https://github.com/NI-Web-Infra-Team/common-utils/issues/24)) ([9248fb6](https://github.com/NI-Web-Infra-Team/common-utils/commit/9248fb662831c73ff6f5dc29bc633b3cfac84baf)) | ||
|
||
# 1.0.0 (2023-06-02) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* 修复由于修改仓库名而丢失的链接 ([752f3b9](https://github.com/NI-Web-Infra-Team/common-utils/commit/752f3b916fdfeec986f1454e00e029008f4f3ffe)) | ||
* 修复由于修改仓库名而丢失的链接 ([ccb0cac](https://github.com/NI-Web-Infra-Team/common-utils/commit/ccb0cac99e21f1297c0664628731ca36eb4ff352)) | ||
|
||
- 修复由于修改仓库名而丢失的链接 ([752f3b9](https://github.com/NI-Web-Infra-Team/common-utils/commit/752f3b916fdfeec986f1454e00e029008f4f3ffe)) | ||
- 修复由于修改仓库名而丢失的链接 ([ccb0cac](https://github.com/NI-Web-Infra-Team/common-utils/commit/ccb0cac99e21f1297c0664628731ca36eb4ff352)) | ||
|
||
### Features | ||
|
||
* 添加文档框架 ([1e64c6b](https://github.com/NI-Web-Infra-Team/common-utils/commit/1e64c6b89b9e63c528086d4a88427a515f63d97e)) | ||
* 添加文档框架 ([1960f59](https://github.com/NI-Web-Infra-Team/common-utils/commit/1960f5952016709f27ddfe918e73d1ef7f97e3c5)) | ||
* 添加文档框架 ([a7aa14b](https://github.com/NI-Web-Infra-Team/common-utils/commit/a7aa14bc07241d0d5e62311433cdbae480b5f2c7)) | ||
* 添加文档框架 ([da23561](https://github.com/NI-Web-Infra-Team/common-utils/commit/da23561d0d15c4a86b48cf52e795476e6c49a2ad)) | ||
* 清除历史日志,项目迁移 ([5ec0f43](https://github.com/NI-Web-Infra-Team/common-utils/commit/5ec0f435f781a51e9014640907bb8fe80a70d1ec)) | ||
* 计算文字宽度 ([03fb18c](https://github.com/NI-Web-Infra-Team/common-utils/commit/03fb18c06c0b1f73981f6d69df718d55b06a5d92)), closes [#15](https://github.com/NI-Web-Infra-Team/common-utils/issues/15) | ||
* 重置版本号 ([55def4a](https://github.com/NI-Web-Infra-Team/common-utils/commit/55def4acc2d3cf528f8103b08a7970e6213504ae)) | ||
- 添加文档框架 ([1e64c6b](https://github.com/NI-Web-Infra-Team/common-utils/commit/1e64c6b89b9e63c528086d4a88427a515f63d97e)) | ||
- 添加文档框架 ([1960f59](https://github.com/NI-Web-Infra-Team/common-utils/commit/1960f5952016709f27ddfe918e73d1ef7f97e3c5)) | ||
- 添加文档框架 ([a7aa14b](https://github.com/NI-Web-Infra-Team/common-utils/commit/a7aa14bc07241d0d5e62311433cdbae480b5f2c7)) | ||
- 添加文档框架 ([da23561](https://github.com/NI-Web-Infra-Team/common-utils/commit/da23561d0d15c4a86b48cf52e795476e6c49a2ad)) | ||
- 清除历史日志,项目迁移 ([5ec0f43](https://github.com/NI-Web-Infra-Team/common-utils/commit/5ec0f435f781a51e9014640907bb8fe80a70d1ec)) | ||
- 计算文字宽度 ([03fb18c](https://github.com/NI-Web-Infra-Team/common-utils/commit/03fb18c06c0b1f73981f6d69df718d55b06a5d92)), closes [#15](https://github.com/NI-Web-Infra-Team/common-utils/issues/15) | ||
- 重置版本号 ([55def4a](https://github.com/NI-Web-Infra-Team/common-utils/commit/55def4acc2d3cf528f8103b08a7970e6213504ae)) | ||
|
||
# 1.0.0 (2023-05-30) | ||
|
||
|
||
### Features | ||
|
||
* 添加文档框架 ([1e64c6b](https://github.com/NI-Web-Infra-Team/common-utils/commit/1e64c6b89b9e63c528086d4a88427a515f63d97e)) | ||
* 添加文档框架 ([da23561](https://github.com/NI-Web-Infra-Team/common-utils/commit/da23561d0d15c4a86b48cf52e795476e6c49a2ad)) | ||
* 清除历史日志,项目迁移 ([5ec0f43](https://github.com/NI-Web-Infra-Team/common-utils/commit/5ec0f435f781a51e9014640907bb8fe80a70d1ec)) | ||
* 计算文字宽度 ([03fb18c](https://github.com/NI-Web-Infra-Team/common-utils/commit/03fb18c06c0b1f73981f6d69df718d55b06a5d92)), closes [#15](https://github.com/NI-Web-Infra-Team/common-utils/issues/15) | ||
* 重置版本号 ([55def4a](https://github.com/NI-Web-Infra-Team/common-utils/commit/55def4acc2d3cf528f8103b08a7970e6213504ae)) | ||
- 添加文档框架 ([1e64c6b](https://github.com/NI-Web-Infra-Team/common-utils/commit/1e64c6b89b9e63c528086d4a88427a515f63d97e)) | ||
- 添加文档框架 ([da23561](https://github.com/NI-Web-Infra-Team/common-utils/commit/da23561d0d15c4a86b48cf52e795476e6c49a2ad)) | ||
- 清除历史日志,项目迁移 ([5ec0f43](https://github.com/NI-Web-Infra-Team/common-utils/commit/5ec0f435f781a51e9014640907bb8fe80a70d1ec)) | ||
- 计算文字宽度 ([03fb18c](https://github.com/NI-Web-Infra-Team/common-utils/commit/03fb18c06c0b1f73981f6d69df718d55b06a5d92)), closes [#15](https://github.com/NI-Web-Infra-Team/common-utils/issues/15) | ||
- 重置版本号 ([55def4a](https://github.com/NI-Web-Infra-Team/common-utils/commit/55def4acc2d3cf528f8103b08a7970e6213504ae)) | ||
|
||
# 1.0.0-beta.1 (2023-05-30) | ||
|
||
|
||
### Features | ||
|
||
* 添加文档框架 ([1e64c6b](https://github.com/NI-Web-Infra-Team/common-utils/commit/1e64c6b89b9e63c528086d4a88427a515f63d97e)) | ||
* 添加文档框架 ([da23561](https://github.com/NI-Web-Infra-Team/common-utils/commit/da23561d0d15c4a86b48cf52e795476e6c49a2ad)) | ||
* 清除历史日志,项目迁移 ([5ec0f43](https://github.com/NI-Web-Infra-Team/common-utils/commit/5ec0f435f781a51e9014640907bb8fe80a70d1ec)) | ||
* 计算文字宽度 ([03fb18c](https://github.com/NI-Web-Infra-Team/common-utils/commit/03fb18c06c0b1f73981f6d69df718d55b06a5d92)), closes [#15](https://github.com/NI-Web-Infra-Team/common-utils/issues/15) | ||
* 重置版本号 ([55def4a](https://github.com/NI-Web-Infra-Team/common-utils/commit/55def4acc2d3cf528f8103b08a7970e6213504ae)) | ||
- 添加文档框架 ([1e64c6b](https://github.com/NI-Web-Infra-Team/common-utils/commit/1e64c6b89b9e63c528086d4a88427a515f63d97e)) | ||
- 添加文档框架 ([da23561](https://github.com/NI-Web-Infra-Team/common-utils/commit/da23561d0d15c4a86b48cf52e795476e6c49a2ad)) | ||
- 清除历史日志,项目迁移 ([5ec0f43](https://github.com/NI-Web-Infra-Team/common-utils/commit/5ec0f435f781a51e9014640907bb8fe80a70d1ec)) | ||
- 计算文字宽度 ([03fb18c](https://github.com/NI-Web-Infra-Team/common-utils/commit/03fb18c06c0b1f73981f6d69df718d55b06a5d92)), closes [#15](https://github.com/NI-Web-Infra-Team/common-utils/issues/15) | ||
- 重置版本号 ([55def4a](https://github.com/NI-Web-Infra-Team/common-utils/commit/55def4acc2d3cf528f8103b08a7970e6213504ae)) | ||
|
||
# 1.0.0-development.1 (2023-05-25) | ||
|
||
### Features | ||
|
||
* 清除历史日志,项目迁移 ([5ec0f43](https://github.com/NI-Web-Infra-Team/common-utils/commit/5ec0f435f781a51e9014640907bb8fe80a70d1ec)) | ||
* 计算文字宽度 ([b916185](https://github.com/NI-Web-Infra-Team/common-utils/commit/b9161853527356b36ae1af906a47ef237416671d)), closes [#15](https://github.com/NI-Web-Infra-Team/common-utils/issues/15) | ||
* 重置版本号 ([55def4a](https://github.com/NI-Web-Infra-Team/common-utils/commit/55def4acc2d3cf528f8103b08a7970e6213504ae)) | ||
- 清除历史日志,项目迁移 ([5ec0f43](https://github.com/NI-Web-Infra-Team/common-utils/commit/5ec0f435f781a51e9014640907bb8fe80a70d1ec)) | ||
- 计算文字宽度 ([b916185](https://github.com/NI-Web-Infra-Team/common-utils/commit/b9161853527356b36ae1af906a47ef237416671d)), closes [#15](https://github.com/NI-Web-Infra-Team/common-utils/issues/15) | ||
- 重置版本号 ([55def4a](https://github.com/NI-Web-Infra-Team/common-utils/commit/55def4acc2d3cf528f8103b08a7970e6213504ae)) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { defineConfig } from "cypress"; | ||
import { setupNodeEvents } from "./tests/e2e/plugins/index"; | ||
|
||
export default defineConfig({ | ||
env: { CYPRESS_COVERAGE: "true" }, | ||
component: { | ||
devServer: { | ||
framework: "vue", | ||
bundler: "vite", | ||
}, | ||
}, | ||
e2e: { | ||
specPattern: ["**/tests/e2e/**/?(*.){test,spec}.?(c|m)[jt]s?(x)"], | ||
supportFile: "tests/e2e/support/index.ts", | ||
setupNodeEvents, | ||
}, | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { mount } from "cypress/vue"; | ||
|
||
type MountParams = Parameters<typeof mount>; | ||
type OptionsParam = MountParams[1]; | ||
|
||
declare global { | ||
namespace Cypress { | ||
interface Chainable { | ||
mount: typeof mount; | ||
} | ||
} | ||
} |
Oops, something went wrong.