mirror of
https://github.com/Powerful-517/yys-editor.git
synced 2026-03-05 15:05:27 +00:00
- 安装 vitest, @vue/test-utils, jsdom 等测试依赖 - 配置 vitest.config.js 测试环境 - 添加 schema.test.ts (7个数据结构验证测试) - 添加 useStore.test.ts (7个状态管理测试) - 创建测试指南文档 (docs/testing.md) - 创建测试规范文档 (docs/testing-rules.md) - 创建开发规范文档 (docs/development-rules.md) - 创建开发工作流程文档 (docs/1management/workflow.md) - 添加测试相关 npm scripts (test, test:watch, test:ui, test:coverage) - 所有测试通过 (14/14)
51 lines
1.4 KiB
JSON
51 lines
1.4 KiB
JSON
{
|
|
"name": "vue-project",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"test": "vitest --run",
|
|
"test:watch": "vitest",
|
|
"test:ui": "vitest --ui",
|
|
"test:coverage": "vitest --coverage",
|
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
|
|
"format": "prettier --write src/",
|
|
"precommit": "npm test && npm run lint"
|
|
},
|
|
"dependencies": {
|
|
"@element-plus/icons-vue": "^2.3.1",
|
|
"@logicflow/core": "^2.0.16",
|
|
"@logicflow/engine": "^0.1.1",
|
|
"@logicflow/extension": "^2.0.21",
|
|
"@logicflow/vue-node-registry": "^1.0.18",
|
|
"@tailwindcss/postcss": "^4.1.11",
|
|
"@vueup/vue-quill": "^1.2.0",
|
|
"element-plus": "^2.9.1",
|
|
"html2canvas": "^1.4.1",
|
|
"pinia": "^3.0.1",
|
|
"vue": "^3.3.10",
|
|
"vue-i18n": "^11.1.1",
|
|
"vue3-draggable-resizable": "^1.6.5",
|
|
"vuedraggable": "^4.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@rushstack/eslint-patch": "^1.3.3",
|
|
"@vitejs/plugin-vue": "^4.5.1",
|
|
"@vitest/ui": "^4.0.18",
|
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
"@vue/test-utils": "^2.4.6",
|
|
"eslint": "^8.49.0",
|
|
"eslint-plugin-vue": "^9.17.0",
|
|
"happy-dom": "^20.6.1",
|
|
"husky": "^9.1.7",
|
|
"jsdom": "^28.0.0",
|
|
"lint-staged": "^16.2.7",
|
|
"prettier": "^3.0.3",
|
|
"vite": "^5.0.5",
|
|
"vitest": "^4.0.18"
|
|
}
|
|
}
|