Przeglądaj źródła

improve scripts

Yuki Takei 3 miesięcy temu
rodzic
commit
06c8914640
3 zmienionych plików z 8 dodań i 7 usunięć
  1. 1 1
      AGENTS.md
  2. 2 2
      apps/app/AGENTS.md
  3. 5 4
      apps/app/package.json

+ 1 - 1
AGENTS.md

@@ -128,7 +128,7 @@ Or from apps/app directory:
 ```bash
 pnpm run lint:typecheck
 pnpm run lint:biome
-pnpm run test:vitest
+pnpm run test
 pnpm run build
 ```
 

+ 2 - 2
apps/app/AGENTS.md

@@ -25,7 +25,7 @@ pnpm run dev:migrate            # Run database migrations
 # Quality Checks
 pnpm run lint:typecheck         # TypeScript type check
 pnpm run lint:biome             # Biome linter
-pnpm run test:vitest            # Run tests
+pnpm run test            # Run tests
 
 # Build
 pnpm run build                  # Build for production
@@ -128,7 +128,7 @@ import { Button } from '~/components/Button';
 ```bash
 pnpm run lint:typecheck   # 1. Type check
 pnpm run lint:biome       # 2. Lint
-pnpm run test:vitest      # 3. Run tests
+pnpm run test             # 3. Run tests
 pnpm run build            # 4. Verify build (optional)
 ```
 

+ 5 - 4
apps/app/package.json

@@ -34,10 +34,11 @@
     "lint": "run-p lint:**",
     "prelint:openapi:apiv3": "pnpm run openapi:generate-spec:apiv3",
     "prelint:openapi:apiv1": "pnpm run openapi:generate-spec:apiv1",
-    "test": "pnpm run test:vitest:coverage",
-    "test:vitest": "vitest run",
-    "test:vitest:coverage": "COLUMNS=200 vitest run --coverage",
-    "reg:run": "reg-suit run",
+    "test": "vitest run",
+    "test:coverage": "run-p test:coverage:* test:integ",
+    "test:coverage:unit": "COLUMNS=200 vitest run --coverage --project=app-unit",
+    "test:coverage:components": "COLUMNS=200 vitest run --coverage --project=app-components",
+    "test:integ": "vitest run --project=app-integration",
     "//// misc": "",
     "console": "npm run repl",
     "repl": "cross-env NODE_ENV=development npm run ts-node src/server/repl.ts",