From 88961596b177c1cf96878d9ae468272a8200a25c Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Thu, 23 Apr 2026 06:10:11 -0400 Subject: [PATCH] fix(web): rename route-colocated test to avoid +page.* collision +page.test.ts triggered svelte-kit sync's route walker (which treats any +-prefixed file as a route). Renaming to login.test.ts lets the sync pass without disabling it in scripts, preserving the upstream guarantee that types in .svelte-kit/ are fresh before check/test. Plan bug introduced in Task 10 (filename chosen in the plan); fixing here and updating the plan so re-runs use the correct name. Co-Authored-By: Claude Opus 4.7 --- web/package.json | 5 ++--- web/src/routes/login/{+page.test.ts => login.test.ts} | 0 2 files changed, 2 insertions(+), 3 deletions(-) rename web/src/routes/login/{+page.test.ts => login.test.ts} (100%) diff --git a/web/package.json b/web/package.json index 691d545f..3c8559f9 100644 --- a/web/package.json +++ b/web/package.json @@ -7,9 +7,8 @@ "dev": "vite dev", "build": "vite build", "preview": "vite preview", - "sync": "svelte-kit sync", - "check": "svelte-check --tsconfig ./tsconfig.json", - "test": "vitest run" + "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", + "test": "svelte-kit sync && vitest run" }, "devDependencies": { "@sveltejs/adapter-static": "^3.0.6", diff --git a/web/src/routes/login/+page.test.ts b/web/src/routes/login/login.test.ts similarity index 100% rename from web/src/routes/login/+page.test.ts rename to web/src/routes/login/login.test.ts