Skip to content

Feat/contract tests e2e smoke leak detection - #1068

Merged
RUKAYAT-CODER merged 6 commits into
rinafcode:mainfrom
ahmadogo:feat/contract-tests-e2e-smoke-leak-detection
Aug 27, 2026
Merged

Feat/contract tests e2e smoke leak detection#1068
RUKAYAT-CODER merged 6 commits into
rinafcode:mainfrom
ahmadogo:feat/contract-tests-e2e-smoke-leak-detection

Conversation

@ahmadogo

Copy link
Copy Markdown
Contributor

ahmadogo and others added 5 commits August 27, 2026 10:28
- Create docs/openapi.yaml with full OpenAPI 3.0 specification for auth,
  payments, courses, users, batch, and sync endpoints
- Add openapi.contract.test.ts validating Zod schemas match the spec
- Extend validation.ts with auth, payment, and sync schemas
- Add validation wrappers for critical endpoints
- Extend validation.test.ts with comprehensive contract fixtures
- Fix missing closing brace in setSessionAccessor (axios.config.ts)
- Fix duplicate imports and import ordering (cache.ts, axios.config.ts)

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
- Replace broken test-e2e job with proper EAS build + Maestro flow
- Build APK via EAS with preview profile, wait for completion
- Download APK artifact and run Maestro tests locally
- Upload JUnit results and screenshots as artifacts on failure
- Add contract test step to CI after OpenAPI validation
- Update existing flows (login, course, lesson, quiz) with robust
  selectors using optional patterns and extended wait
- Add purchase flow (05-purchase-flow.yaml) covering the subscription
  journey

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
A parametrised smoke test discovers all routes under app/, imports each
module, and renders the default export to catch mount-time ReferenceErrors.
New routes are auto-included via directory glob. Added to test.yml as the
first step for fast CI feedback. Fixed moduleNameMapper for @/hooks/
resolution and added root component mocks.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Enable detectOpenHandles and forceExit in jest.config.js so the suite
reports leaked handles. Add teardown calls in jest.setup.js afterAll for
axios cache stats interval, socket service, memoryPressureService, and
networkMonitor. Create leak-detection.test.ts verifying each service
exposes the required teardown API.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
subscriptionMeta.ts contains JSX and must use the .tsx extension.
safeLog.ts had an extra closing brace causing a syntax error.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
@drips-wave

drips-wave Bot commented Aug 27, 2026

Copy link
Copy Markdown

@ahmadogo Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@RUKAYAT-CODER

Copy link
Copy Markdown
Contributor

Thank you for contributing to the project.

@RUKAYAT-CODER
RUKAYAT-CODER merged commit 916126b into rinafcode:main Aug 27, 2026
2 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants