Check whether this card's code meets the acceptance criteria
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Summarise the unit and e2e tests a branch/PR adds, run only those, and produce a paste-ready report (e.g. for a Linear card). Use when asked to 'summarise added tests', 'run the new tests', 'what tests did this PR add', or to prove a card's test coverage.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치 방법 보기설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
Report the tests a branch adds (vs its base), run only those, and format a paste-ready summary. Count only genuinely-new tests — new test files, plus new cases inside modified files; never pre-existing ones.
The branch's PR base, else main:
BASE=origin/$(gh pr view --json baseRefName -q .baseRefName 2>/dev/null || echo main)
git fetch "${BASE#origin/}"
# new test files — every case in these is new (.test.* = unit, .spec.* = e2e)
git diff --name-status --diff-filter=A "$BASE"...HEAD | grep -iE '\.(test|spec)\.(js|ts|jsx|tsx)$'
# modified test files — only some cases may be new
git diff --name-status --diff-filter=M "$BASE"...HEAD | grep -iE '\.(test|spec)\.(js|ts|jsx|tsx)$'
# new cases within a modified file
git diff "$BASE"...HEAD -- <file> | grep -E '^\+\s*(it|test)(\.(only|skip|each))?\('
Count only it/test. A describe/test.describe is a suite wrapper, not a test — count the cases inside it, not the wrapper.
Pick the runner from the package's own test script (check it; don't assume). Run under the repo's Node (.node-version) against local Postgres:
npx vitest run <file> [-t "<substring>"]@tamanu/mobile: npx jest <file> [-t "<substring>"] --verbose@tamanu/e2e-tests (*.spec.ts): npx playwright test <file> [-g "<title>"]Always pass the specific file — never a bare workspace script (npm test, npm run e2e-test), which runs the whole suite. Run a new file whole; use -t/-g to scope a modified file to its new cases.
When a runner can't run locally, cite the branch's CI run (gh run list --branch <branch> → gh run view --log) instead of reporting a false failure:
node_modules (e.g. an es-toolkit/compat / defaultsDeep error) → the runner won't start;packages/e2e-tests/.env (FACILITY_FRONTEND_URL, TEST_EMAIL, TEST_PASSWORD). Without it, list the added specs/cases from the diff and pull pass/fail from CI.Head with the branch + commit SHA. Group by runner → file, one line per added case (✓, or the CI status when cited). Don't collapse to per-file counts — show each test name. End with per-runner and grand totals of added tests; keep pre-existing/skipped cases out of the totals (mention them only to explain a -t/-g filter), and mark any runner cited from CI.
아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
Check whether this card's code meets the acceptance criteria
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Run a quick UX/UI workshop using ASCII-art sketches
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Write automated tests for unticked scenarios in this card's test cases
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Review code changes on this card for likely bugs, regressions, and missed edges
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Maintain a support docs pack — dedup, length budgets, and no splintering — and land changes as a reviewed pull request. Use when a support thread, or a hand-off from Support assist, surfaces a new resolution, a correction to an existing one, or a deployment quirk worth recording. Not for ordinary code changes.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Audit this card's mockups or implementation against the design library
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.