name: nxtest description: Run frontend tests with filtered output (PASS/FAIL + errors only). Wraps client-test-filtered.ps1. argument-hint: [-Project "project"] [-Pattern "path"] [-Filter "test name"] [-NoCoverage] model: haiku allowed-tools: ["Bash"]
NxTest — Filtered Frontend Test Runner
Run frontend tests in the Nx monorepo showing only PASS/FAIL results, error details, and summary.
Usage
/nxtest— test cognito-spa (default)/nxtest -Project "cognito-spa" -Pattern "Button"— filter by file path/nxtest -Project "@cognitoforms/model.js" -Filter "should render"— filter by test name/nxtest -NoCoverage— skip coverage for faster runs
Common Projects
cognito-spa, cognito-client, @cognitoforms/model.js, @cognitoforms/vuemodel
Instructions
Construct the command:
REPO_ROOT=$(git rev-parse --show-toplevel) && powershell.exe -ExecutionPolicy Bypass -File "$REPO_ROOT/.claude/scripts/client-test-filtered.ps1"If
$ARGUMENTSis provided, append it verbatim to the command. The script accepts:-Project "..."— Nx project name (default:cognito-spa)-Pattern "..."— testPathPattern (filter by file path)-Filter "..."— testNamePattern (filter by test name)-NoCoverage— skip coverage collection
Run the command using Bash. Do not interpret or reformat the output.