Cline rules
.clinerules/testing-rules.mdCline rules
Quality
54/100
Scores the file, not the repository.Length
97 words
3 headings · 2 code blocksRepository
0
— · pushed 119 days agoLast changed
2 days ago
First indexed 2 days ago.1# Testing Rules23## Unit Test Location45Place unit tests in the **same folder** as the module under test, not in a separate `__tests__` folder.67**Correct:**8```9src/10 utils/11 numbers.ts # Source file12 numbers.test.ts # Test file in same folder13```1415**Incorrect:**16```17src/18 utils/19 numbers.ts20 __tests__/21 numbers.test.ts # Don't use __tests__ folder22```2324**Rationale:**25- Keeps tests close to the code they test26- Easier to find related tests27- Follows Bun/Vitest conventions28- Reduces folder nesting2930## Test File Naming3132- Use `.test.ts` extension (Bun/Jest convention)33- Match the source file name: `{module}.test.ts` for `{module}.ts`34
Also in BattlefieldNoob/Project-Shisha
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| BattlefieldNoob/Project-ShishaCLAUDE.md · 0 | CLAUDE.md | setupbuildtestlint-format+4 | 97/100 | 2 days ago | |
| BattlefieldNoob/Project-Shisha.clinerules/agent-guidelines.md · 0 | Cline rules | setupbuildstyleagent-behaviour+1 | 73/100 | 2 days ago | |
| BattlefieldNoob/Project-Shisha.clinerules/project-context.md · 0 | Cline rules | teststylearchagent-behaviour | 71/100 | 2 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| bashdeban/fastmind.clinerules/.project-consistency-keeper2.md · 5 | Cline rules | setupbuildtestlint-format+11 | 100/100 | 3 days ago | |
| JCodesMore/ai-website-cloner-template.clinerules · 31k | Cline rules | buildlint-formatstylearch+3 | 97/100 | 2 days ago | |
| u9401066/zotero-keeper.clinerules/50-pubmed-project.md · 6 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| u9401066/zotero-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/50-pubmed-project.md · 6 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| VaillerTeeter/HoshimiNest.clinerules/project-identity.md · 1 | Cline rules | setuparchtypesdo-not | 93/100 | yesterday | |
| blendsdk/codeops-mcp.clinerules/project.md · 0 | Cline rules | buildteststylearch+7 | 91/100 | 3 days ago | |
| cline/cline.clinerules/general.md · 66k | Cline rules | setupbuildstylearch+2 | 86/100 | 3 days ago | |
| u9401066/zotero-keeper.clinerules/60-pubmed-python.md · 6 | Cline rules | setuptestlint-formatstyle+2 | 86/100 | 3 days ago |
