Просмотр исходного кода

update serena configuration and memories

Yuki Takei 7 месяцев назад
Родитель
Сommit
bc60a6d566

BIN
.serena/cache/typescript/document_symbols_cache_v23-06-25.pkl


+ 25 - 0
.serena/memories/vitest-testing-tips-and-best-practices.md

@@ -62,6 +62,31 @@ expect(mockFunction).toHaveBeenCalledWith(
 );
 ```
 
+## 実行コマンド
+
+### 基本テスト実行
+```bash
+# Vitest単体(coverageあり)
+pnpm run test:vitest
+
+# 特定ファイルのみ実行(coverageあり)
+pnpm run test:vitest src/path/to/test.spec.tsx
+
+# Coverage出力を見やすくフィルタリング
+pnpm run test:vitest src/path/to/test.spec.tsx 2>&1 | grep -v "^[[:space:]]*|"
+```
+
+### package.jsonスクリプト参照
+```json
+{
+  "scripts": {
+    "test": "run-p test:*",
+    "test:jest": "cross-env NODE_ENV=test TS_NODE_PROJECT=test/integration/tsconfig.json jest",
+    "test:vitest": "vitest run --coverage"
+  }
+}
+```
+
 ## Jest→Vitest移行要点
 - `jest.config.js` → `vitest.config.ts`
 - `@types/jest` → `vitest/globals`

+ 6 - 0
.serena/serena_config.yml

@@ -2,3 +2,9 @@ web_dashboard: false
 # whether to open the Serena web dashboard (which will be accessible through your web browser) that
 # shows Serena's current session logs - as an alternative to the GUI log window which
 # is supported on all platforms.
+
+web_dashboard_open_on_launch: false
+# whether to open a browser window with the web dashboard when Serena starts (provided that web_dashboard
+# is enabled). If set to False, you can still open the dashboard manually by navigating to
+# http://localhost:24282/dashboard/ in your web browser (24282 = 0x5EDA, SErena DAshboard).
+# If you have multiple instances running, a higher port will be used; try port 24283, 24284, etc.