AI SummaryCursor Rules for enforcing consistent testing standards (Vitest) across a WhatsApp-based rotating savings groups platform with clear conventions for unit and integration tests. Developers building features on this platform benefit from standardized test structure and quality guidelines.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "likelemba-platform — Cursor Rules" prompt rules to my project. Repository: https://github.com/elvic-group/likelemba-platform Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
WhatsApp-first rotating savings groups platform (ROSCA) with transparent ledgers, automated reminders, mobile-money + Stripe payments, and escrow + refunds + disputes
Requirements
• Use Vitest as the testing framework. • Group related tests logically (describe blocks). • Write clear, atomic assertions; avoid chaining multiple, unrelated checks in one test. • Test only critical logic or components; avoid trivial or redundant tests. • Give each test a descriptive name that clarifies its purpose and expected outcome.
Examples
<example> import { describe, it, expect } from "vitest"; describe("Button component", () => { it("renders with default props", () => { const result = renderButton(); // Pseudocode expect(result).toContain("<button>"); }); }); </example> <example type="invalid"> test("Test all app logic in one big function", () => { // Overly broad testing, unclear assertions }); </example>
Testing Standards
<author>blefnk/rules</author> <version>1.0.0</version>
Context
• Ensures consistent testing conventions for unit and integration tests • Uses vitest for all test files matching */.test.ts
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts