|
@@ -23,9 +23,9 @@ Draft
|
|
|
|
|
|
|
|
- [ ] Task 1: 创建 delivery-address-module package 基础结构 (AC: 1)
|
|
- [ ] Task 1: 创建 delivery-address-module package 基础结构 (AC: 1)
|
|
|
- [ ] 创建 packages/delivery-address-module 目录
|
|
- [ ] 创建 packages/delivery-address-module 目录
|
|
|
- - [ ] 配置 package.json,参考广告模块的依赖版本
|
|
|
|
|
- - [ ] 配置 tsconfig.json,参考广告模块配置
|
|
|
|
|
- - [ ] 配置 vitest.config.ts,参考广告模块配置
|
|
|
|
|
|
|
+ - [ ] 配置 package.json,参考广告模块的依赖版本 [Source: packages/advertisements-module/package.json#L47-L66]
|
|
|
|
|
+ - [ ] 配置 tsconfig.json,参考广告模块配置 [Source: packages/advertisements-module/tsconfig.json#L1-L16]
|
|
|
|
|
+ - [ ] 配置 vitest.config.ts,参考广告模块配置 [Source: packages/advertisements-module/vitest.config.ts#L1-L21]
|
|
|
- [ ] 创建 src/index.ts 导出文件
|
|
- [ ] 创建 src/index.ts 导出文件
|
|
|
|
|
|
|
|
- [ ] Task 2: 迁移配送地址实体和类型定义 (AC: 2, 4)
|
|
- [ ] Task 2: 迁移配送地址实体和类型定义 (AC: 2, 4)
|
|
@@ -53,8 +53,9 @@ Draft
|
|
|
- [ ] 验证与地区模块的集成
|
|
- [ ] 验证与地区模块的集成
|
|
|
|
|
|
|
|
- [ ] Task 6: 创建测试套件 (AC: 7)
|
|
- [ ] Task 6: 创建测试套件 (AC: 7)
|
|
|
- - [ ] 创建集成测试 packages/delivery-address-module/tests/integration/
|
|
|
|
|
- - [ ] 配置测试数据库连接
|
|
|
|
|
|
|
+ - [ ] 创建单元测试 packages/delivery-address-module/tests/unit/
|
|
|
|
|
+ - [ ] 创建集成测试 packages/delivery-address-module/tests/integration/,参考广告模块集成测试结构 [Source: packages/advertisements-module/tests/integration/advertisements.integration.test.ts#L1-L50]
|
|
|
|
|
+ - [ ] 配置测试数据库连接,使用 shared-test-util [Source: packages/shared-test-util/src/integration-test-db.ts#L1-L30]
|
|
|
- [ ] 确保测试覆盖率满足要求
|
|
- [ ] 确保测试覆盖率满足要求
|
|
|
|
|
|
|
|
- [ ] Task 7: 验证和文档 (AC: 4, 6)
|
|
- [ ] Task 7: 验证和文档 (AC: 4, 6)
|
|
@@ -98,12 +99,14 @@ Draft
|
|
|
- **package.json**: 参考广告模块配置,统一依赖版本 [Source: packages/advertisements-module/package.json#L47-L66]
|
|
- **package.json**: 参考广告模块配置,统一依赖版本 [Source: packages/advertisements-module/package.json#L47-L66]
|
|
|
- **tsconfig.json**: 参考广告模块配置 [Source: packages/advertisements-module/tsconfig.json#L1-L16]
|
|
- **tsconfig.json**: 参考广告模块配置 [Source: packages/advertisements-module/tsconfig.json#L1-L16]
|
|
|
- **vitest.config.ts**: 参考广告模块配置 [Source: packages/advertisements-module/vitest.config.ts#L1-L21]
|
|
- **vitest.config.ts**: 参考广告模块配置 [Source: packages/advertisements-module/vitest.config.ts#L1-L21]
|
|
|
|
|
+- **shared-test-util**: 测试基础设施包,提供统一的测试工具 [Source: packages/shared-test-util/package.json#L1-L16]
|
|
|
|
|
|
|
|
### 测试要求
|
|
### 测试要求
|
|
|
- **测试位置**: `packages/delivery-address-module/tests/` [Source: docs/architecture/testing-strategy.md#L39-L42]
|
|
- **测试位置**: `packages/delivery-address-module/tests/` [Source: docs/architecture/testing-strategy.md#L39-L42]
|
|
|
- **测试类型**: 单元测试 + 集成测试 [Source: docs/architecture/testing-strategy.md#L47-L56]
|
|
- **测试类型**: 单元测试 + 集成测试 [Source: docs/architecture/testing-strategy.md#L47-L56]
|
|
|
- **覆盖率目标**: 单元测试 ≥ 80%,集成测试 ≥ 60% [Source: docs/architecture/testing-strategy.md#L166-L171]
|
|
- **覆盖率目标**: 单元测试 ≥ 80%,集成测试 ≥ 60% [Source: docs/architecture/testing-strategy.md#L166-L171]
|
|
|
- **测试框架**: Vitest + shared-test-util [Source: docs/architecture/testing-strategy.md#L43-L44]
|
|
- **测试框架**: Vitest + shared-test-util [Source: docs/architecture/testing-strategy.md#L43-L44]
|
|
|
|
|
+- **集成测试参考**: 参考广告模块集成测试结构和模式 [Source: packages/advertisements-module/tests/integration/advertisements.integration.test.ts#L1-L50]
|
|
|
|
|
|
|
|
### 向后兼容性
|
|
### 向后兼容性
|
|
|
- **API 兼容**: 现有配送地址API保持不变 [Source: docs/prd/epic-005-mini-auth-modules-integration.md#L101]
|
|
- **API 兼容**: 现有配送地址API保持不变 [Source: docs/prd/epic-005-mini-auth-modules-integration.md#L101]
|