فهرست منبع

Merge branch 'master' into feat/new-assistant-wizard

Shun Miyazawa 7 ماه پیش
والد
کامیت
852b602ca6

+ 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 - 3
apps/app/package.json

@@ -35,12 +35,12 @@
     "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",
-    "previtest:run:integ": "vitest run -c test-with-vite/download-mongo-binary/vitest.config.ts test-with-vite/download-mongo-binary",
     "//// misc": "",
     "//// misc": "",
     "console": "npm run repl",
     "console": "npm run repl",
     "repl": "cross-env NODE_ENV=development npm run ts-node src/server/repl.ts",
     "repl": "cross-env NODE_ENV=development npm run ts-node src/server/repl.ts",

+ 0 - 5
apps/app/test-with-vite/download-mongo-binary/index.spec.ts

@@ -1,5 +0,0 @@
-describe('Download mongo-binary', () => {
-  it('should be success', () => {
-    expect(true).toBeTruthy();
-  });
-});

+ 0 - 16
apps/app/test-with-vite/download-mongo-binary/vitest.config.ts

@@ -1,16 +0,0 @@
-import tsconfigPaths from 'vite-tsconfig-paths';
-import { defineConfig } from 'vitest/config';
-
-export default defineConfig({
-  plugins: [
-    tsconfigPaths(),
-  ],
-  test: {
-    clearMocks: true,
-    globals: true,
-    hookTimeout: 60000, // increased for downloading MongoDB binary file
-    setupFiles: [
-      './test-with-vite/setup/mongoms.ts',
-    ],
-  },
-});