Commit 7aa4a20
authored
refactor: reorganise test files and standardise naming convention (#191)
* refactor(tests): relocate tests to sit alongside implementations
Move all test files from src/tests/ to respective implementation directories:
- Array, TF-IDF index tests to src/utils/
- Base, StackOne toolset tests to src/toolsets/
- RequestBuilder tests to src/modules/
- Feedback tool tests to src/tools/
- Tool, meta-tools, json-schema tests to src/
- RPC client test remains in src/
Update all relative imports to reflect new file locations. This makes
the test file sit horizontally next to its implementation, improving
discoverability and maintainability. All tests pass and types are
correct.
* refactor(tests): rename .spec.ts files to .test.ts
Rename all test files from .spec.ts to .test.ts convention for
consistency with industry standards. Test files now use a uniform
naming scheme across the entire project.
* refactor(config): update vitest configuration for .test.ts naming
Update vitest.config.ts to reference .test.ts files instead of .spec.ts:
- Change include patterns from *.spec.ts to *.test.ts
- Simplify coverage exclude patterns by removing deprecated patterns
- Update typecheck include patterns to match new naming convention
- Fix outdated path reference in exclude list
* refactor(skills): update test file naming from .spec.ts to .test.ts
Update Claude Code skill documentation to reflect the new .test.ts naming
convention for test files:
- Update typescript-testing skill globs from *.spec.ts to *.test.ts
- Update example commands to use .test.ts file paths
- Remove outdated pnpm test:unit command reference
- Update development-workflow skill with new naming convention1 parent b6af300 commit 7aa4a20
File tree
16 files changed
+24
-26
lines changed- .claude/skills
- development-workflow
- typescript-testing
- src
- modules
- toolsets
- tools
- utils
16 files changed
+24
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
File renamed without changes.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments