LEARN. PRACTICE. EXPLAIN.
Learning paths & interview practiceP
← All projects
GUIDED QA PROJECT · 4–6 hours

Build a contract & boundary test harness

Design independent test oracles, property-based invariants, deterministic clock tests, and flake diagnostics.

Your brief

Build an automated verification harness for an e-commerce checkout flow: prove discount thresholds without copying production code, catch broken sorts with properties, guard API contracts from PII leaks, test exact expiry boundaries, verify webhook idempotency, and diagnose flaky runs.

Node.js 22.12+ and basic JavaScript assertions. Review qa foundations whenever a concept is unfamiliar.

Exercises run against pure functions and in-memory test doubles in Node. Browser DOM interactions, accessibility, and real database deadlocks require complementary integration and E2E suites.

Download starter.mjs and checks.mjs into one folder. Run node checks.mjs ./starter.mjs 1 through 6 as you implement each module.

0 / 6 steps verified by you. Checks are self-reported; this website does not execute your code.

  1. 1

    Build an independent price & boundary oracle

    Verify threshold arithmetic in integer cents without reusing production code.

  2. 2

    Verify sorting via property-based invariants

    Catch implementations that pass naive sortedness checks by dropping elements.

  3. 3

    Validate API contracts and block PII leakage

    Assert explicit field shapes while ensuring sensitive attributes never leak.

  4. 4

    Test exact expiry boundaries without sleeps

    Inject controlled timestamps to kill off-by-one comparison bugs.

  5. 5

    Verify duplicate and out-of-order webhooks

    Assert durable state invariants rather than just HTTP status codes.

  6. 6

    Diagnose flaky runs and defend release risk

    Classify intermittent failures from evidence instead of adding sleeps.

AlifBay Prep