@boopkit/cap-testing 0.3.1 → 0.4.0
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/capability.json +28 -5
- package/package.json +1 -1
- package/skills/{test.tdd-light.skill.md → boop-testing-tdd-light/SKILL.md} +6 -1
- package/skills/{test.testing.skill.md → boop-testing-testing/SKILL.md} +6 -1
- package/skills/{test.testing-express-web.skill.md → boop-testing-testing-express-web/SKILL.md} +6 -1
package/capability.json
CHANGED
|
@@ -3,11 +3,34 @@
|
|
|
3
3
|
"description": "Jest testing setup",
|
|
4
4
|
"type": "development",
|
|
5
5
|
"dependencies": [],
|
|
6
|
-
"devDependencies": [
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"devDependencies": [
|
|
7
|
+
"jest",
|
|
8
|
+
"ts-jest",
|
|
9
|
+
"@types/jest"
|
|
10
|
+
],
|
|
11
|
+
"files": [
|
|
12
|
+
"jest.config.js",
|
|
13
|
+
"tsconfig.test.json",
|
|
14
|
+
"tests/"
|
|
15
|
+
],
|
|
16
|
+
"skills": [
|
|
17
|
+
"boop-testing-tdd-light",
|
|
18
|
+
"boop-testing-testing-express-web",
|
|
19
|
+
"boop-testing-testing"
|
|
20
|
+
],
|
|
9
21
|
"scripts": {
|
|
10
|
-
"test": {
|
|
11
|
-
|
|
22
|
+
"test": {
|
|
23
|
+
"cmd": "jest --runInBand",
|
|
24
|
+
"description": "Run all tests"
|
|
25
|
+
},
|
|
26
|
+
"test:watch": {
|
|
27
|
+
"cmd": "jest --watch",
|
|
28
|
+
"description": "Run tests in watch mode"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"skill_migrations": {
|
|
32
|
+
"boop-testing-tdd-light": "test.tdd-light.skill.md",
|
|
33
|
+
"boop-testing-testing-express-web": "test.testing-express-web.skill.md",
|
|
34
|
+
"boop-testing-testing": "test.testing.skill.md"
|
|
12
35
|
}
|
|
13
36
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: boop-testing-tdd-light
|
|
3
|
+
description: "When you need to build features, implement changes, or fix bugs, follow the Light TDD Flow. This includes bug fixes found during UAT — write the failing test *before* applying the fix."
|
|
4
|
+
metadata:
|
|
5
|
+
category: test
|
|
6
|
+
---
|
|
1
7
|
# Light TDD Flow
|
|
2
|
-
When you need to build features, implement changes, or fix bugs, follow the Light TDD Flow. This includes bug fixes found during UAT — write the failing test *before* applying the fix.
|
|
3
8
|
|
|
4
9
|
Red → Green → Refactor. Document "before" and "after" states.
|
|
5
10
|
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: boop-testing-testing
|
|
3
|
+
description: "When you need to write, run, or reason about tests in this project."
|
|
4
|
+
metadata:
|
|
5
|
+
category: test
|
|
6
|
+
---
|
|
1
7
|
# Testing
|
|
2
8
|
|
|
3
|
-
When you need to write, run, or reason about tests in this project.
|
|
4
9
|
|
|
5
10
|
## Philosophy
|
|
6
11
|
|
package/skills/{test.testing-express-web.skill.md → boop-testing-testing-express-web/SKILL.md}
RENAMED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: boop-testing-testing-express-web
|
|
3
|
+
description: "When you need to write or run tests for the Express server — services, controllers, middleware, and HTTP routes."
|
|
4
|
+
metadata:
|
|
5
|
+
category: test
|
|
6
|
+
---
|
|
1
7
|
# Testing: Express App (Web & APIs)
|
|
2
8
|
|
|
3
|
-
When you need to write or run tests for the Express server — services, controllers, middleware, and HTTP routes.
|
|
4
9
|
|
|
5
10
|
Parent skill: [testing.skill.md](testing.skill.md) (philosophy, generic approach)
|
|
6
11
|
|