feat(test): 添加完整的单元和E2E测试套件,修复Jest配置并更新测试脚本
新增Playwright E2E测试配置、测试用例与测试指南文档;新增d2-table、TableHeadSearch、利润率测算表格组件的单元测试文件;配置Jest的transformIgnorePatterns以支持lodash-es和nanoid等ES模块依赖;调整package.json的测试脚本,拆分出兼容旧版Node.js的test:unit:legacy命令,解决高版本Node.js的openssl参数报错问题;新增@playwright/test项目依赖。
Showing
9 changed files
with
754 additions
and
1 deletions
This diff could not be displayed because it is too large.
playwright.config.js
0 → 100644
tests/README.md
0 → 100644
tests/e2e/profitMarginTable.spec.js
0 → 100644
This diff is collapsed.
Click to expand it.
tests/unit/d2-table/TableHeadSearch.spec.js
0 → 100644
This diff is collapsed.
Click to expand it.
tests/unit/d2-table/index.spec.js
0 → 100644
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment