.cursor/skills/test/SKILL.md
Runs and scopes automated tests for this Turborepo (unit, package filters, Medusa stress, E2E, release gate). Use when the user asks to run tests, verify CI locally, debug failing tests, or choose the right test command for a changed package.
npx skillsauth add JustineDevs/E-Commerce testInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| Goal | Command |
|------|---------|
| Full unit + package test suite (long) | pnpm test |
| Stress / gate without full E2E details | pnpm stress-test:quick |
| Full stress pipeline | pnpm stress-test |
| Playwright E2E | pnpm test:e2e (UI: pnpm test:e2e:ui) |
| Pre-deploy style check | pnpm predeploy |
pnpm test runs packages in a fixed order (platform-data, UI build, sdk, validation, rate-limits, api, database, admin, storefront, Medusa unit + Medusa stress). Prefer scoped runs when the user only touched one area.
Use pnpm --filter <package-name> test (or the script defined in that package, e.g. test:unit, test:stress).
Common filters (from workspace package.json names):
@apparel-commerce/platform-data@apparel-commerce/sdk@apparel-commerce/validation@apparel-commerce/rate-limits@apparel-commerce/api@apparel-commerce/database@apparel-commerce/admin@apparel-commerce/storefrontmedusa (see apps/medusa/package.json for test:unit, test:stress)Example: only SDK tests:
pnpm --filter @apparel-commerce/sdk test
E2E often needs services and seed data. From root:
pnpm e2e:prep (Medusa prep + staff ensure)pnpm test:e2e or targeted specs via node stress-test/scripts/run-e2e.js <path-or-pattern>Read playwright.config.ts and stress-test/scripts/run-e2e.js when the user needs custom projects or grep.
pnpm test).For stress-test flags and dogfood flows, see .cursor/commands/stress.md if present in the repo.
development
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
tools
UI/UX design intelligence for web and mobile. Includes 50+ styles, 161 color palettes, 57 font pairings, 161 product types, 99 UX guidelines, and 25 chart types across 10 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, and HTML/CSS). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, and check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, and mobile app. Elements: button, modal, navbar, sidebar, card, table, form, and chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, and flat design. Topics: color systems, accessibility, animation, layout, typography, font pairing, spacing, interaction states, shadow, and gradient. Integrations: shadcn/ui MCP for component search and examples.
development
Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.
development
ALWAYS use this skill when working on ecommerce storefronts, online stores, shopping sites. Use for ANY storefront component including checkout pages, cart, payment flows, product pages, product listings, navigation, homepage, or ANY page/component in a storefront. CRITICAL for adding checkout, implementing cart, integrating Medusa backend, or building any ecommerce functionality. Framework-agnostic (Next.js, SvelteKit, TanStack Start, React, Vue). Provides patterns, decision frameworks, backend integration guidance.