فهرست منبع

update test command

Yuki Takei 7 ماه پیش
والد
کامیت
d5c0beed93
3فایلهای تغییر یافته به همراه6 افزوده شده و 5 حذف شده
  1. 2 2
      .serena/memories/suggested_commands.md
  2. 1 1
      .serena/memories/task_completion_checklist.md
  3. 3 2
      apps/app/package.json

+ 2 - 2
.serena/memories/suggested_commands.md

@@ -58,8 +58,8 @@ pnpm run test:jest
 # 全てのテスト実行(過渡期対応)
 # 全てのテスト実行(過渡期対応)
 pnpm run test
 pnpm run test
 
 
-# Vitestをカバレッジ付きで実行
-vitest run --coverage
+# Vitestで特定のファイルに絞って実行
+pnpm run test:vitest {target-file-name}
 
 
 # E2Eテスト(Playwright)
 # E2Eテスト(Playwright)
 npx playwright test
 npx playwright test

+ 1 - 1
.serena/memories/task_completion_checklist.md

@@ -26,7 +26,7 @@ pnpm run test
 
 
 # 個別実行
 # 個別実行
 pnpm run test:jest        # Jest(廃止予定)
 pnpm run test:jest        # Jest(廃止予定)
-vitest run --coverage     # Vitestカバレッジ付き
+pnpm run test:vitest {target-file-name}     # Vitest
 ```
 ```
 
 
 ### 3. E2Eテストの実行(重要な機能変更時)
 ### 3. E2Eテストの実行(重要な機能変更時)

+ 3 - 2
apps/app/package.json

@@ -35,9 +35,10 @@
     "lint": "run-p lint:**",
     "lint": "run-p lint:**",
     "prelint:openapi:apiv3": "pnpm run openapi:generate-spec:apiv3",
     "prelint:openapi:apiv3": "pnpm run openapi:generate-spec:apiv3",
     "prelint:openapi:apiv1": "pnpm run openapi:generate-spec:apiv1",
     "prelint:openapi:apiv1": "pnpm run openapi:generate-spec:apiv1",
-    "test": "run-p test:*",
+    "test": "run-p test:jest test:vitest:coverage",
     "test:jest": "cross-env NODE_ENV=test TS_NODE_PROJECT=test/integration/tsconfig.json jest",
     "test:jest": "cross-env NODE_ENV=test TS_NODE_PROJECT=test/integration/tsconfig.json jest",
-    "test:vitest": "vitest run --coverage",
+    "test:vitest": "vitest run",
+    "test:vitest:coverage": "COLUMNS=200 vitest run --coverage",
     "jest:run": "cross-env NODE_ENV=test TS_NODE_PROJECT=test/integration/tsconfig.json jest --passWithNoTests -- ",
     "jest:run": "cross-env NODE_ENV=test TS_NODE_PROJECT=test/integration/tsconfig.json jest --passWithNoTests -- ",
     "reg:run": "reg-suit run",
     "reg:run": "reg-suit run",
     "//// misc": "",
     "//// misc": "",