Skip to content

The agent that grows with you

refactor(desktop): single-source the ui test command in the shard scripts

kshitija163c2ba1210
diff --git a/apps/desktop/package.json b/apps/desktop/package.json
index ec2264ee046..382af5288f3 100644
--- a/apps/desktop/package.json
+++ b/apps/desktop/package.json
@@ -62,9 +62,9 @@
"test": "vitest run",
"preview": "node scripts/assert-root-install.mjs && vite preview --host 127.0.0.1 --port 4174",
"check:test:desktop:platforms": "npm run test:desktop:platforms",
- "check:test:ui:shard-1of3": "vitest run --project ui --shard=1/3",
- "check:test:ui:shard-2of3": "vitest run --project ui --shard=2/3",
- "check:test:ui:shard-3of3": "vitest run --project ui --shard=3/3",
+ "check:test:ui:shard-1of3": "npm run test:ui -- --shard=1/3",
+ "check:test:ui:shard-2of3": "npm run test:ui -- --shard=2/3",
+ "check:test:ui:shard-3of3": "npm run test:ui -- --shard=3/3",
"check:test:desktop:all": "npm run test:desktop:all",
"check:lint": "npm run typecheck && npm run lint",
"check": "npm run check:lint && npm run test:ui && npm run test:desktop:platforms && npm run test:desktop:all",