tdd-enforcer 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tdd-enforcer",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "type": "module",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -28,12 +28,12 @@ It locks files per phase — only test files in RED, only implementation files i
28
28
 
29
29
  ## Setup
30
30
 
31
- 1. **Agent** creates `.pi/tdd/rules.json` with these fields:
31
+ 1. **Agent** checks if the repo has a test framework set up. If it doesn't, stop and ask the user what they want. Do not make assumptions, pick defaults, or proceed without their explicit decision. Then create `.pi/tdd/rules.json` with these fields:
32
32
 
33
33
  ```json
34
34
  {
35
35
  "blockedInRed": ["src/**/*.ts", "lib/**/*.ts", "!src/**/*.test.ts"],
36
- "blockedInGreen": ["**/*.test.ts", "**/*.spec.ts"],
36
+ "blockedInGreen": ["**/*.test.ts"],
37
37
  "testCommands": ["npm test"],
38
38
  "timeoutSeconds": 30
39
39
  }