@qazuor/claude-code-config 0.1.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/LICENSE +21 -0
- package/README.md +1248 -0
- package/dist/bin.cjs +11886 -0
- package/dist/bin.cjs.map +1 -0
- package/dist/bin.d.cts +1 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +11869 -0
- package/dist/bin.js.map +1 -0
- package/dist/index.cjs +3887 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1325 -0
- package/dist/index.d.ts +1325 -0
- package/dist/index.js +3835 -0
- package/dist/index.js.map +1 -0
- package/package.json +86 -0
- package/templates/.log/notifications.log +1775 -0
- package/templates/agents/README.md +164 -0
- package/templates/agents/_registry.json +443 -0
- package/templates/agents/design/content-writer.md +353 -0
- package/templates/agents/design/ux-ui-designer.md +382 -0
- package/templates/agents/engineering/astro-engineer.md +293 -0
- package/templates/agents/engineering/db-drizzle-engineer.md +360 -0
- package/templates/agents/engineering/express-engineer.md +316 -0
- package/templates/agents/engineering/fastify-engineer.md +399 -0
- package/templates/agents/engineering/hono-engineer.md +263 -0
- package/templates/agents/engineering/mongoose-engineer.md +473 -0
- package/templates/agents/engineering/nestjs-engineer.md +429 -0
- package/templates/agents/engineering/nextjs-engineer.md +451 -0
- package/templates/agents/engineering/node-typescript-engineer.md +347 -0
- package/templates/agents/engineering/prisma-engineer.md +432 -0
- package/templates/agents/engineering/react-senior-dev.md +394 -0
- package/templates/agents/engineering/tanstack-start-engineer.md +447 -0
- package/templates/agents/engineering/tech-lead.md +269 -0
- package/templates/agents/product/product-functional.md +329 -0
- package/templates/agents/product/product-technical.md +578 -0
- package/templates/agents/quality/debugger.md +514 -0
- package/templates/agents/quality/qa-engineer.md +390 -0
- package/templates/agents/specialized/enrichment-agent.md +277 -0
- package/templates/agents/specialized/i18n-specialist.md +322 -0
- package/templates/agents/specialized/seo-ai-specialist.md +387 -0
- package/templates/agents/specialized/tech-writer.md +300 -0
- package/templates/code-style/.editorconfig +27 -0
- package/templates/code-style/.prettierignore +25 -0
- package/templates/code-style/.prettierrc +12 -0
- package/templates/code-style/biome.json +78 -0
- package/templates/code-style/commitlint.config.js +44 -0
- package/templates/commands/README.md +175 -0
- package/templates/commands/_registry.json +420 -0
- package/templates/commands/add-new-entity.md +211 -0
- package/templates/commands/audit/accessibility-audit.md +360 -0
- package/templates/commands/audit/performance-audit.md +290 -0
- package/templates/commands/audit/security-audit.md +231 -0
- package/templates/commands/code-check.md +127 -0
- package/templates/commands/five-why.md +225 -0
- package/templates/commands/formatting/format-markdown.md +197 -0
- package/templates/commands/git/commit.md +247 -0
- package/templates/commands/meta/create-agent.md +257 -0
- package/templates/commands/meta/create-command.md +312 -0
- package/templates/commands/meta/create-skill.md +321 -0
- package/templates/commands/meta/help.md +318 -0
- package/templates/commands/planning/check-completed-tasks.md +224 -0
- package/templates/commands/planning/cleanup-issues.md +248 -0
- package/templates/commands/planning/planning-cleanup.md +251 -0
- package/templates/commands/planning/sync-planning-github.md +133 -0
- package/templates/commands/planning/sync-todos-github.md +203 -0
- package/templates/commands/quality-check.md +211 -0
- package/templates/commands/run-tests.md +159 -0
- package/templates/commands/start-feature-plan.md +232 -0
- package/templates/commands/start-refactor-plan.md +244 -0
- package/templates/commands/sync-planning.md +176 -0
- package/templates/commands/update-docs.md +242 -0
- package/templates/docs/CHECKPOINT-SYSTEM.md +504 -0
- package/templates/docs/INDEX.md +677 -0
- package/templates/docs/RECOMMENDED-HOOKS.md +415 -0
- package/templates/docs/_registry.json +329 -0
- package/templates/docs/diagrams/README.md +220 -0
- package/templates/docs/diagrams/agent-hierarchy.mmd +55 -0
- package/templates/docs/diagrams/documentation-map.mmd +61 -0
- package/templates/docs/diagrams/tools-relationship.mmd +55 -0
- package/templates/docs/diagrams/workflow-decision-tree.mmd +38 -0
- package/templates/docs/doc-sync.md +533 -0
- package/templates/docs/examples/end-to-end-workflow.md +1505 -0
- package/templates/docs/glossary.md +495 -0
- package/templates/docs/guides/mockup-prompt-engineering.md +644 -0
- package/templates/docs/guides/mockup-setup.md +737 -0
- package/templates/docs/learnings/README.md +250 -0
- package/templates/docs/learnings/common-architectural-patterns.md +123 -0
- package/templates/docs/learnings/common-mistakes-to-avoid.md +149 -0
- package/templates/docs/learnings/markdown-formatting-standards.md +104 -0
- package/templates/docs/learnings/monorepo-command-execution.md +64 -0
- package/templates/docs/learnings/optimization-tips.md +146 -0
- package/templates/docs/learnings/planning-linear-sync-workflow.md +70 -0
- package/templates/docs/learnings/shell-compatibility-fish.md +46 -0
- package/templates/docs/learnings/test-organization-structure.md +68 -0
- package/templates/docs/mcp-installation.md +613 -0
- package/templates/docs/mcp-servers.md +989 -0
- package/templates/docs/notification-installation.md +570 -0
- package/templates/docs/quick-start.md +354 -0
- package/templates/docs/standards/architecture-patterns.md +1064 -0
- package/templates/docs/standards/atomic-commits.md +513 -0
- package/templates/docs/standards/code-standards.md +993 -0
- package/templates/docs/standards/design-standards.md +656 -0
- package/templates/docs/standards/documentation-standards.md +1160 -0
- package/templates/docs/standards/testing-standards.md +969 -0
- package/templates/docs/system-maintenance.md +604 -0
- package/templates/docs/templates/PDR-template.md +561 -0
- package/templates/docs/templates/TODOs-template.md +534 -0
- package/templates/docs/templates/tech-analysis-template.md +800 -0
- package/templates/docs/workflows/README.md +519 -0
- package/templates/docs/workflows/atomic-task-protocol.md +955 -0
- package/templates/docs/workflows/decision-tree.md +482 -0
- package/templates/docs/workflows/edge-cases.md +856 -0
- package/templates/docs/workflows/phase-1-planning.md +957 -0
- package/templates/docs/workflows/phase-2-implementation.md +896 -0
- package/templates/docs/workflows/phase-3-validation.md +792 -0
- package/templates/docs/workflows/phase-4-finalization.md +927 -0
- package/templates/docs/workflows/quick-fix-protocol.md +505 -0
- package/templates/docs/workflows/task-atomization.md +537 -0
- package/templates/docs/workflows/task-completion-protocol.md +448 -0
- package/templates/hooks/on-notification.sh +28 -0
- package/templates/schemas/checkpoint.schema.json +97 -0
- package/templates/schemas/code-registry.schema.json +84 -0
- package/templates/schemas/pdr.schema.json +314 -0
- package/templates/schemas/problems.schema.json +55 -0
- package/templates/schemas/tech-analysis.schema.json +404 -0
- package/templates/schemas/telemetry.schema.json +298 -0
- package/templates/schemas/todos.schema.json +234 -0
- package/templates/schemas/workflows.schema.json +69 -0
- package/templates/scripts/add-changelogs.sh +105 -0
- package/templates/scripts/generate-code-registry.ts +270 -0
- package/templates/scripts/health-check.sh +343 -0
- package/templates/scripts/sync-registry.sh +40 -0
- package/templates/scripts/telemetry-report.ts +36 -0
- package/templates/scripts/validate-docs.sh +224 -0
- package/templates/scripts/validate-registry.sh +225 -0
- package/templates/scripts/validate-schemas.ts +283 -0
- package/templates/scripts/validate-structure.sh +165 -0
- package/templates/scripts/worktree-cleanup.sh +81 -0
- package/templates/scripts/worktree-create.sh +63 -0
- package/templates/sessions/planning/.gitkeep +0 -0
- package/templates/sessions/planning/archived/.gitkeep +0 -0
- package/templates/settings.json +202 -0
- package/templates/settings.local.json +138 -0
- package/templates/skills/README.md +197 -0
- package/templates/skills/_registry.json +473 -0
- package/templates/skills/audit/accessibility-audit.md +309 -0
- package/templates/skills/audit/performance-audit.md +257 -0
- package/templates/skills/audit/security-audit.md +217 -0
- package/templates/skills/auth/nextauth-patterns.md +308 -0
- package/templates/skills/brand-guidelines.md +240 -0
- package/templates/skills/documentation/markdown-formatter.md +302 -0
- package/templates/skills/git/git-commit-helper.md +321 -0
- package/templates/skills/i18n/i18n-patterns.md +251 -0
- package/templates/skills/patterns/error-handling-patterns.md +242 -0
- package/templates/skills/patterns/tdd-methodology.md +342 -0
- package/templates/skills/qa/qa-criteria-validator.md +383 -0
- package/templates/skills/qa/web-app-testing.md +398 -0
- package/templates/skills/react/react-hook-form-patterns.md +359 -0
- package/templates/skills/state/redux-toolkit-patterns.md +272 -0
- package/templates/skills/state/tanstack-query-patterns.md +299 -0
- package/templates/skills/state/zustand-patterns.md +301 -0
- package/templates/skills/tech/mermaid-diagram-specialist.md +195 -0
- package/templates/skills/tech/shadcn-specialist.md +252 -0
- package/templates/skills/tech/vercel-specialist.md +297 -0
- package/templates/skills/testing/api-app-testing.md +254 -0
- package/templates/skills/testing/performance-testing.md +275 -0
- package/templates/skills/testing/security-testing.md +348 -0
- package/templates/skills/utils/add-memory.md +295 -0
- package/templates/skills/utils/json-data-auditor.md +283 -0
- package/templates/skills/utils/pdf-creator-editor.md +342 -0
- package/templates/tools/format-markdown.sh +185 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# Optimization Tips
|
|
2
|
+
|
|
3
|
+
**Date:** 2024-10-28
|
|
4
|
+
|
|
5
|
+
**Category:** Performance / Best Practices
|
|
6
|
+
|
|
7
|
+
## Problem
|
|
8
|
+
|
|
9
|
+
Inefficient development practices lead to:
|
|
10
|
+
|
|
11
|
+
- Wasted time searching for documentation
|
|
12
|
+
- Redundant work analyzing dependencies
|
|
13
|
+
- Slow development cycles
|
|
14
|
+
- Lost context between sessions
|
|
15
|
+
|
|
16
|
+
## Solution
|
|
17
|
+
|
|
18
|
+
**Development Optimization Strategies:**
|
|
19
|
+
|
|
20
|
+
### 1. Use Context7 for Library Docs
|
|
21
|
+
|
|
22
|
+
Saves tokens and gets up-to-date documentation:
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
// Instead of searching Google, use MCP tools:
|
|
26
|
+
mcp__context7__resolve-library-id("hono")
|
|
27
|
+
mcp__context7__get-library-docs("/honojs/hono")
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
**Benefits:**
|
|
31
|
+
|
|
32
|
+
- Always current documentation
|
|
33
|
+
- Saves Claude context tokens
|
|
34
|
+
- Faster than web search
|
|
35
|
+
- Integrated into workflow
|
|
36
|
+
|
|
37
|
+
**Works for:** Hono, Drizzle, React, TanStack, Zod, Vitest, Astro, etc.
|
|
38
|
+
|
|
39
|
+
### 2. Use Dependency Mapper
|
|
40
|
+
|
|
41
|
+
Track dependencies automatically instead of manual analysis:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# Analyze dependencies
|
|
45
|
+
pnpm run dependency-map
|
|
46
|
+
|
|
47
|
+
# Generate dependency graph
|
|
48
|
+
# Shows: version conflicts, security issues, outdated packages
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**Benefits:**
|
|
52
|
+
|
|
53
|
+
- Automatic security scanning
|
|
54
|
+
- Version conflict detection
|
|
55
|
+
- Dependency tree visualization
|
|
56
|
+
- Update recommendations
|
|
57
|
+
|
|
58
|
+
### 3. Batch Related Changes
|
|
59
|
+
|
|
60
|
+
Group related changes in single commits:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# ✅ GOOD - Logical grouping
|
|
64
|
+
git commit -m "feat(db): add booking model, schema, and tests"
|
|
65
|
+
# Files: booking.schema.ts, booking.model.ts, booking.model.test.ts
|
|
66
|
+
|
|
67
|
+
# ❌ BAD - Separate commits for related changes
|
|
68
|
+
git commit -m "add booking schema"
|
|
69
|
+
git commit -m "add booking model"
|
|
70
|
+
git commit -m "add booking tests"
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**Benefits:**
|
|
74
|
+
|
|
75
|
+
- Clearer git history
|
|
76
|
+
- Easier code review
|
|
77
|
+
- Atomic changes
|
|
78
|
+
- Simpler rollbacks
|
|
79
|
+
|
|
80
|
+
### 4. Group Tests by Feature
|
|
81
|
+
|
|
82
|
+
Organize tests by feature instead of by type:
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
test/
|
|
86
|
+
├── booking/ # Feature-based
|
|
87
|
+
│ ├── create.test.ts
|
|
88
|
+
│ ├── update.test.ts
|
|
89
|
+
│ └── validation.test.ts
|
|
90
|
+
└── user/ # Feature-based
|
|
91
|
+
├── auth.test.ts
|
|
92
|
+
└── profile.test.ts
|
|
93
|
+
|
|
94
|
+
# Instead of type-based:
|
|
95
|
+
test/
|
|
96
|
+
├── unit/
|
|
97
|
+
├── integration/
|
|
98
|
+
└── e2e/
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**Benefits:**
|
|
102
|
+
|
|
103
|
+
- Easier to find related tests
|
|
104
|
+
- Better feature coverage visibility
|
|
105
|
+
- Simpler test maintenance
|
|
106
|
+
- Clear test organization
|
|
107
|
+
|
|
108
|
+
### 5. Use MCP Servers Effectively
|
|
109
|
+
|
|
110
|
+
Leverage integrated MCP servers:
|
|
111
|
+
|
|
112
|
+
- **Context7**: Library documentation
|
|
113
|
+
- **Neon**: Database operations
|
|
114
|
+
- **GitHub**: Issue tracking, PRs
|
|
115
|
+
- **Vercel**: Deployment management
|
|
116
|
+
- **Linear**: Project management
|
|
117
|
+
|
|
118
|
+
**Example workflow:**
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
# Check database schema
|
|
122
|
+
mcp__neon__describe_branch
|
|
123
|
+
|
|
124
|
+
# Create GitHub issue
|
|
125
|
+
mcp__github__create_issue
|
|
126
|
+
|
|
127
|
+
# Deploy to Vercel
|
|
128
|
+
mcp__vercel__deploy
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Impact
|
|
132
|
+
|
|
133
|
+
- **Severity:** Medium - Improves efficiency, not critical
|
|
134
|
+
- **Frequency:** Daily development
|
|
135
|
+
- **Scope:** All developers
|
|
136
|
+
- **Prevention:** Integrate optimization practices into daily workflow
|
|
137
|
+
|
|
138
|
+
## Related
|
|
139
|
+
|
|
140
|
+
- **MCP Servers:** [.claude/docs/mcp-servers.md](../mcp-servers.md)
|
|
141
|
+
- **Development Workflow:** [CLAUDE.md](../../../CLAUDE.md#development-workflow)
|
|
142
|
+
- **Related Learnings:** None yet
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
Last updated: 2024-10-28
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Planning and Linear Sync Workflow
|
|
2
|
+
|
|
3
|
+
**Date:** 2024-10-28
|
|
4
|
+
|
|
5
|
+
**Category:** Planning / GitHub / Linear / Workflow
|
|
6
|
+
|
|
7
|
+
## Problem
|
|
8
|
+
|
|
9
|
+
Manual planning synchronization causes:
|
|
10
|
+
|
|
11
|
+
- Planning sessions not tracked in GitHub
|
|
12
|
+
- Lost context when switching devices
|
|
13
|
+
- No visibility into task progress
|
|
14
|
+
- Forgotten task completions
|
|
15
|
+
|
|
16
|
+
## Solution
|
|
17
|
+
|
|
18
|
+
**Workflow Best Practices:**
|
|
19
|
+
|
|
20
|
+
1. **Sync after planning approval** - Always offer to sync planning to Linear/GitHub
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pnpm planning:sync .claude/sessions/planning/P-XXX-feature-name/
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
2. **Commit before marking complete** - Code MUST be committed before task completion
|
|
27
|
+
- Prevents lost work
|
|
28
|
+
- Enables cross-device workflow
|
|
29
|
+
- Creates audit trail
|
|
30
|
+
|
|
31
|
+
3. **Auto-generate commit suggestions** - Group files logically:
|
|
32
|
+
- Schemas (validation layer)
|
|
33
|
+
- Models + Tests (data layer)
|
|
34
|
+
- Services (business logic)
|
|
35
|
+
- API (routes and controllers)
|
|
36
|
+
|
|
37
|
+
4. **Use conventional commits** - `feat/refactor/fix` with proper scope
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
feat(db): add booking model and schema
|
|
41
|
+
refactor(api): consolidate error handlers
|
|
42
|
+
fix(auth): correct JWT validation
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
5. **Cross-device workflow:**
|
|
46
|
+
- Commit → Push → Access from anywhere
|
|
47
|
+
- .checkpoint.json tracks progress
|
|
48
|
+
- issues-sync.json maintains GitHub state
|
|
49
|
+
|
|
50
|
+
6. **Three sync options:**
|
|
51
|
+
- **Execute**: Run suggested commits immediately
|
|
52
|
+
- **Modify**: Edit commit messages/groupings
|
|
53
|
+
- **Skip**: Skip with warning (not recommended)
|
|
54
|
+
|
|
55
|
+
## Impact
|
|
56
|
+
|
|
57
|
+
- **Severity:** High - Affects project tracking and collaboration
|
|
58
|
+
- **Frequency:** Every feature development
|
|
59
|
+
- **Scope:** All planning sessions (Level 3 workflows)
|
|
60
|
+
- **Prevention:** Always sync after planning approval, commit before completion
|
|
61
|
+
|
|
62
|
+
## Related
|
|
63
|
+
|
|
64
|
+
- **Full Documentation:** [.claude/docs/workflows/task-completion-protocol.md](../workflows/task-completion-protocol.md)
|
|
65
|
+
- **Planning Workflow:** [.claude/docs/workflows/phase-1-planning.md](../workflows/phase-1-planning.md)
|
|
66
|
+
- **Related Learnings:** None yet
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
Last updated: 2024-10-28
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Shell Compatibility - Fish Shell
|
|
2
|
+
|
|
3
|
+
**Date:** 2024-10-28
|
|
4
|
+
|
|
5
|
+
**Category:** Shell / Terminal / DevOps
|
|
6
|
+
|
|
7
|
+
## Problem
|
|
8
|
+
|
|
9
|
+
Using `for` loops directly in the terminal causes Fish shell to hang indefinitely, blocking the entire development workflow.
|
|
10
|
+
|
|
11
|
+
## Solution
|
|
12
|
+
|
|
13
|
+
- **DON'T use `for` loops in terminal** - Fish shell hangs
|
|
14
|
+
- Use alternatives like `find -exec` for batch operations
|
|
15
|
+
- Use `xargs` for processing multiple items
|
|
16
|
+
- Write shell scripts for complex loops instead of running directly in terminal
|
|
17
|
+
|
|
18
|
+
**Example:**
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
# ❌ BAD - Hangs in Fish
|
|
22
|
+
for file in *.md; do echo $file; done
|
|
23
|
+
|
|
24
|
+
# ✅ GOOD - Works in Fish
|
|
25
|
+
find . -name "*.md" -exec echo {} \;
|
|
26
|
+
|
|
27
|
+
# ✅ GOOD - Alternative with xargs
|
|
28
|
+
ls *.md | xargs -I {} echo {}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Impact
|
|
32
|
+
|
|
33
|
+
- **Severity:** High - Blocks development workflow
|
|
34
|
+
- **Frequency:** Common when doing batch operations
|
|
35
|
+
- **Scope:** All developers using Fish shell
|
|
36
|
+
- **Prevention:** Use alternative commands documented above
|
|
37
|
+
|
|
38
|
+
## Related
|
|
39
|
+
|
|
40
|
+
- **Documentation:** Fish shell documentation on loops
|
|
41
|
+
- **Best Practices:** [.claude/docs/standards/code-standards.md](../standards/code-standards.md)
|
|
42
|
+
- **Related Learnings:** None yet
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
Last updated: 2024-10-28
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Test Organization and Structure
|
|
2
|
+
|
|
3
|
+
**Date:** 2024-10-28
|
|
4
|
+
|
|
5
|
+
**Category:** Testing / Project Structure
|
|
6
|
+
|
|
7
|
+
## Problem
|
|
8
|
+
|
|
9
|
+
Tests placed incorrectly (e.g., in `src/` alongside source code) cause:
|
|
10
|
+
|
|
11
|
+
- Import path confusion
|
|
12
|
+
- Build artifacts including test files
|
|
13
|
+
- Difficulty maintaining test/source separation
|
|
14
|
+
- Inconsistent test discovery
|
|
15
|
+
|
|
16
|
+
## Solution
|
|
17
|
+
|
|
18
|
+
**Test Organization Rules:**
|
|
19
|
+
|
|
20
|
+
1. **Tests go in `test/` folder at package/app root** - NOT in `src/`
|
|
21
|
+
2. **Mirror source folder structure** - `src/models/user.model.ts` → `test/models/user.model.test.ts`
|
|
22
|
+
3. **Use relative imports in tests** - Import from `../src/` not same-folder
|
|
23
|
+
4. **Migrate gradually** - When editing a package, move its tests to correct structure
|
|
24
|
+
|
|
25
|
+
**Example Structure:**
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
packages/db/
|
|
29
|
+
├── src/
|
|
30
|
+
│ ├── models/
|
|
31
|
+
│ │ ├── user.model.ts
|
|
32
|
+
│ │ └── booking.model.ts
|
|
33
|
+
│ └── services/
|
|
34
|
+
│ └── user.service.ts
|
|
35
|
+
└── test/
|
|
36
|
+
├── models/
|
|
37
|
+
│ ├── user.model.test.ts # Mirrors src/models/
|
|
38
|
+
│ └── booking.model.test.ts
|
|
39
|
+
└── services/
|
|
40
|
+
└── user.service.test.ts # Mirrors src/services/
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**Import Example:**
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
// ✅ CORRECT - test/models/user.model.test.ts
|
|
47
|
+
import { UserModel } from '../../src/models/user.model.js';
|
|
48
|
+
|
|
49
|
+
// ❌ WRONG - Don't import from same folder
|
|
50
|
+
import { UserModel } from './user.model.js';
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Impact
|
|
54
|
+
|
|
55
|
+
- **Severity:** Medium - Affects build and test reliability
|
|
56
|
+
- **Frequency:** Common when creating new packages
|
|
57
|
+
- **Scope:** All packages and apps
|
|
58
|
+
- **Prevention:** Follow test/ structure from project start
|
|
59
|
+
|
|
60
|
+
## Related
|
|
61
|
+
|
|
62
|
+
- **Full Rules:** [.claude/docs/standards/testing-standards.md](../standards/testing-standards.md)
|
|
63
|
+
- **Architecture:** [.claude/docs/standards/architecture-patterns.md](../standards/architecture-patterns.md)
|
|
64
|
+
- **Related Learnings:** None yet
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
Last updated: 2024-10-28
|