From 622c2b09d852de7986292c21759496c5b0a37382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Tue, 20 Oct 2026 20:43:24 +0800 Subject: [PATCH] =?UTF-8?q?docs(plan):=20Task=2013=20=E5=8B=BE=E9=80=89?= =?UTF-8?q?=E2=80=94=E2=80=94=E9=98=B6=E6=AE=B5=201=20=E9=AA=8C=E6=94=B6?= =?UTF-8?q?=EF=BC=9AglobalSetup=20=E4=B8=B4=E6=97=B6=E5=BA=93=20+=20?= =?UTF-8?q?=E7=A9=BA=E5=BA=93=E4=B8=80=E9=94=AE=E8=BF=81=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Code --- docs/superpowers/plans/2026-10-20-slice-foundation-phase0-1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/superpowers/plans/2026-10-20-slice-foundation-phase0-1.md b/docs/superpowers/plans/2026-10-20-slice-foundation-phase0-1.md index 9024ce9..6367bc4 100644 --- a/docs/superpowers/plans/2026-10-20-slice-foundation-phase0-1.md +++ b/docs/superpowers/plans/2026-10-20-slice-foundation-phase0-1.md @@ -799,7 +799,7 @@ CREATE UNIQUE INDEX route_exact_uq ON route_registry (site_id, host, exact_route --- -### Task 13: 空库一键迁移测试(阶段 1 验收) +### Task 13: 空库一键迁移测试(阶段 1 验收)✅ 完成(commit f1c181d,globalSetup 临时库 sf_test_ + drizzle-orm 程序化迁移器 + helpers 公共夹具收敛;75 测试全绿(72+3);实证开发库 21 表行数总和 0、无 sf_test_* 残留;发现并绕过 vitest 2 globalSetup 加载器陷阱——有 default 导出时不捕获具名 teardown,须双具名导出) **Files:** - Create: `scripts/migrate-test.sh` 与 `tests/integration/db.full-migrate.test.ts`(重构公共夹具 `tests/integration/helpers.ts`:建临时库 sf_test_ → 迁移 → 传连接串给测试 → 结束 drop)