Yuki Takei 9 месяцев назад
Родитель
Сommit
3ac078f3c5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      .vscode/settings.json

+ 1 - 1
.vscode/settings.json

@@ -74,7 +74,7 @@
       "text": "Basis: Fallback command for terminal execution: `cd /growi/apps/app && pnpm vitest run {test file path}`"
     },
     {
-      "text": "Step 1: When creating new test modules, start with small files. First write a small number of intentionally failing tests, then fix them to pass. After that, add more tests while maintaining a passing state and increase coverage."
+      "text": "Step 1: When creating new test modules, start with small files. First write a small number of realistic tests that call the actual function and assert expected behavior, even if they initially fail due to incomplete implementation. Example: `const result = foo(); expect(result).toBeNull();` rather than `expect(true).toBe(false);`. Then fix the implementation to make tests pass."
     },
     {
       "text": "Step 2: Write essential tests. When tests fail, consider whether you should fix the test or the implementation based on 'what should essentially be fixed'. If you're not confident in your reasoning, ask the user for guidance."