@farazirfan/costar-server-executor 1.7.16 → 1.7.19

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.
@@ -1,57 +0,0 @@
1
- ---
2
- name: test
3
- description: Run tests using common testing frameworks (vitest, jest, npm test). Verify code quality before committing.
4
- metadata:
5
- emoji: "🧪"
6
- requires:
7
- anyBins: ["npm", "pnpm", "yarn", "bun"]
8
- ---
9
-
10
- # Test Skill
11
-
12
- Run tests and verify code quality.
13
-
14
- ## Running Tests
15
-
16
- **All tests:**
17
- ```bash
18
- npm test
19
- ```
20
-
21
- **Watch mode:**
22
- ```bash
23
- npm test -- --watch
24
- ```
25
-
26
- **Single file:**
27
- ```bash
28
- npm test -- path/to/test.ts
29
- ```
30
-
31
- **Coverage:**
32
- ```bash
33
- npm test -- --coverage
34
- ```
35
-
36
- ## Best Practices
37
-
38
- 1. **Run tests before committing**: Always verify tests pass
39
- 2. **Write tests for new features**: Cover new code paths
40
- 3. **Fix failing tests first**: Don't commit broken tests
41
- 4. **Check coverage**: Aim for good test coverage on critical paths
42
- 5. **Watch mode during development**: Use `--watch` for faster feedback
43
-
44
- ## Common Testing Patterns
45
-
46
- **Unit tests**: Test individual functions/modules in isolation
47
-
48
- **Integration tests**: Test components working together
49
-
50
- **E2E tests**: Test full user workflows
51
-
52
- ## Tips
53
-
54
- - Run specific test suites: `npm test -- --grep "pattern"`
55
- - Update snapshots: `npm test -- --update` (use carefully)
56
- - Verbose output: `npm test -- --verbose`
57
- - Parallel execution: Most frameworks run tests in parallel by default