More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    Production Testing for Django and React

    1

    Pytest + DRF and Jest + React Testing Library playbook with a mandatory run, report, rerun verification loop.

    Free

    Security scanned
    Production Testing for Django and React

    Production Testing for Django and React

    Example session with this skill installed

    Write tests for the new POST /api/orders/ endpoint and tell me whether they actually pass.

    • Read your context and instructions
    • Compiled the production testing

    Summary

    Added 5 API tests for POST /api/orders/, ran them, and proved the new ones can fail. Example output; paths and counts are illustrative.

    What was tested

    TestChecksMocked
    creates order201, response body, row saved in the real DBpayment gateway only
    rejects empty cart400 with a field error, no row creatednothing
    requires auth401 without a tokennothing
    retries safelysame idempotency key twice gives one rownothing
    gateway timeout502 and the order stays pendingpayment gateway raises

    Core of one test

    def test_creates_order(api_client, user, cart):
        with mock.patch("orders.payments.charge") as charge:
            resp = api_client.post("/api/orders/", {"cart_id": cart.id}, format="json")
        assert resp.status_code == 201
        assert Order.objects.filter(id=resp.json()["id"]).exists()
        charge.assert_called_once()
    

    Verification loop

    1. Ran pytest orders/tests/test_api.py -q: 5 passed.
    2. Broke the status assertion on purpose: 1 failed, as expected.
    3. Restored it and reran: 5 passed.

    Next steps

    1. Add a query-count assertion to catch N+1 on the order list.
    2. Add the same endpoint to the contract tests used by the mobile app.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Tests your agent actually runs, and proves can fail

    Most AI-written tests look right and never get run. This skill makes your agent write tests the way a strong team does, then run them, read the result, and prove each new test can go red before trusting it.

    How it helps

    • Honest backend tests. Real-database unit, integration and API tests with pytest and DRF. Mock only at the boundary: network, task dispatch, external services, clock.
    • Solid frontend tests. Jest and React Testing Library with provider-wrapped renders and restorable config mocks.
    • Stable E2E suites. Layered page objects, and a way to quarantine flaky tests without hiding them.
    • Contract and performance checks. Know when an additive change is safe and when it breaks a consumer.
    • A verification loop. Identify the test, run the real command, evaluate, fix the root cause, rerun. No success reported from reading code.

    What's inside

    A short SKILL.md with the philosophy and the loop, plus 4 reference guides: backend testing, frontend testing, E2E and integration and contract testing, and the verification loop with a bug report template.

    Use it when

    Writing or reviewing tests, adding coverage to a feature, debugging a flaky suite, deciding what to mock, or when someone asks whether something actually works.

    How to use

    Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean 1 day ago

    • Free to download with an account

    Requires

    jest
    Node.js

    Listed1 day ago

    What's inside

    Frequently Asked Questions