mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 20:21:09 +02:00
style: auto-format codebase with Prettier
Applied formatting to 1487+ files using pnpm format:write - TypeScript/JavaScript files - Svelte components - Astro pages - JSON configs - Markdown docs 13 files still need manual review (Astro JSX comments)
This commit is contained in:
parent
0241f5554c
commit
d36b321d9d
3952 changed files with 661498 additions and 739751 deletions
|
|
@ -18,12 +18,12 @@ This document provides a comprehensive automated testing strategy for the Manaco
|
|||
|
||||
### Existing Tests by Project
|
||||
|
||||
| Project | Backend | Mobile | Web | Total |
|
||||
|---------|---------|--------|-----|-------|
|
||||
| Maerchenzauber | 8 | 5 | 0 | 13 |
|
||||
| Memoro | 0 | 3 | 0 | 3 |
|
||||
| Uload | 0 | 0 | 9 | 9 |
|
||||
| **Total** | **8** | **8** | **9** | **25** |
|
||||
| Project | Backend | Mobile | Web | Total |
|
||||
| -------------- | ------- | ------ | ----- | ------ |
|
||||
| Maerchenzauber | 8 | 5 | 0 | 13 |
|
||||
| Memoro | 0 | 3 | 0 | 3 |
|
||||
| Uload | 0 | 0 | 9 | 9 |
|
||||
| **Total** | **8** | **8** | **9** | **25** |
|
||||
|
||||
### Strengths
|
||||
|
||||
|
|
@ -44,7 +44,9 @@ This document provides a comprehensive automated testing strategy for the Manaco
|
|||
### 1. Documentation (docs/)
|
||||
|
||||
#### [TESTING.md](./TESTING.md) - 35,000+ words
|
||||
|
||||
Comprehensive testing strategy covering:
|
||||
|
||||
- Testing infrastructure by app type
|
||||
- Test organization patterns
|
||||
- Coverage strategy (80% minimum, 100% for critical paths)
|
||||
|
|
@ -54,7 +56,9 @@ Comprehensive testing strategy covering:
|
|||
- Best practices and FAQs
|
||||
|
||||
#### [TESTING_IMPLEMENTATION_GUIDE.md](./TESTING_IMPLEMENTATION_GUIDE.md) - 8,000+ words
|
||||
|
||||
Quick start guide for developers:
|
||||
|
||||
- Step-by-step setup for each app type
|
||||
- Running tests locally
|
||||
- Coverage reports
|
||||
|
|
@ -62,6 +66,7 @@ Quick start guide for developers:
|
|||
- Quick reference commands
|
||||
|
||||
#### [TESTING_SUMMARY.md](./TESTING_SUMMARY.md) - This file
|
||||
|
||||
High-level overview and index of all testing resources.
|
||||
|
||||
### 2. Shared Test Configuration (packages/test-config/)
|
||||
|
|
@ -81,6 +86,7 @@ packages/test-config/
|
|||
```
|
||||
|
||||
**Features**:
|
||||
|
||||
- 80% coverage thresholds enforced
|
||||
- Auto-clear mocks between tests
|
||||
- Platform-specific ignore patterns
|
||||
|
|
@ -112,7 +118,9 @@ test-examples/
|
|||
### 4. CI/CD Integration (.github/workflows/)
|
||||
|
||||
#### [test.yml](./.github/workflows/test.yml)
|
||||
|
||||
Automated testing workflow with:
|
||||
|
||||
- Parallel test execution across all projects
|
||||
- Coverage reporting to Codecov
|
||||
- Automated PR comments with results
|
||||
|
|
@ -127,6 +135,7 @@ Automated testing workflow with:
|
|||
8. Status reporting
|
||||
|
||||
**Features**:
|
||||
|
||||
- Matrix strategy for parallel execution
|
||||
- Automatic coverage uploads
|
||||
- PR status checks
|
||||
|
|
@ -135,15 +144,15 @@ Automated testing workflow with:
|
|||
|
||||
## Testing Framework Matrix
|
||||
|
||||
| App Type | Framework | Config Location | Coverage Tool |
|
||||
|----------|-----------|----------------|---------------|
|
||||
| **NestJS Backend** | Jest | `@manacore/test-config/jest-backend` | Jest |
|
||||
| **React Native Mobile** | Jest + jest-expo | `@manacore/test-config/jest-mobile` | Jest |
|
||||
| **SvelteKit Web** | Vitest | `@manacore/test-config/vitest-svelte` | v8 |
|
||||
| **Astro Landing** | Vitest | `@manacore/test-config/vitest-base` | v8 |
|
||||
| **Shared Packages** | Vitest | `@manacore/test-config/vitest-base` | v8 |
|
||||
| **E2E (Web)** | Playwright | `@manacore/test-config/playwright` | N/A |
|
||||
| **E2E (Mobile)** | Detox/Maestro | TBD | N/A |
|
||||
| App Type | Framework | Config Location | Coverage Tool |
|
||||
| ----------------------- | ---------------- | ------------------------------------- | ------------- |
|
||||
| **NestJS Backend** | Jest | `@manacore/test-config/jest-backend` | Jest |
|
||||
| **React Native Mobile** | Jest + jest-expo | `@manacore/test-config/jest-mobile` | Jest |
|
||||
| **SvelteKit Web** | Vitest | `@manacore/test-config/vitest-svelte` | v8 |
|
||||
| **Astro Landing** | Vitest | `@manacore/test-config/vitest-base` | v8 |
|
||||
| **Shared Packages** | Vitest | `@manacore/test-config/vitest-base` | v8 |
|
||||
| **E2E (Web)** | Playwright | `@manacore/test-config/playwright` | N/A |
|
||||
| **E2E (Mobile)** | Detox/Maestro | TBD | N/A |
|
||||
|
||||
## Coverage Strategy
|
||||
|
||||
|
|
@ -336,10 +345,10 @@ it('should create item successfully', async () => {
|
|||
|
||||
```typescript
|
||||
// ✅ Good
|
||||
it('should reject sign in with invalid email format')
|
||||
it('should reject sign in with invalid email format');
|
||||
|
||||
// ❌ Bad
|
||||
it('test sign in')
|
||||
it('test sign in');
|
||||
```
|
||||
|
||||
### 3. Test Behavior, Not Implementation
|
||||
|
|
@ -457,6 +466,7 @@ afterEach(() => {
|
|||
This testing strategy provides a complete foundation for achieving 80% test coverage across the Manacore monorepo. All documentation, configurations, examples, and CI/CD integration are ready for implementation. The next step is to begin writing tests following the patterns and guidelines provided.
|
||||
|
||||
**Estimated Impact**:
|
||||
|
||||
- **Quality**: 80%+ reduction in bugs
|
||||
- **Confidence**: 100% confidence in deployments
|
||||
- **Velocity**: Faster feature development with safety net
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue