{
  "id": "fix.node24-windows-test-glob",
  "version": 1,
  "category": "engineering_fix",
  "severity": "low",
  "lifecycleStatus": "ACTIVE",
  "lifecycle": {
    "status": "ACTIVE",
    "appliesTo": "Node.js 24 / Windows",
    "verifiedAt": 1795800000000,
    "reviewDueAt": 1811352000000,
    "replacedBy": "",
    "retireReason": ""
  },
  "contentOrigin": "HUMAN_ORIGINAL",
  "aiModel": "",
  "summaryEn": "Fixes Node.js 24 built-in test runner failure on Windows when passing a bare directory name instead of a quoted file glob.",
  "match": {
    "field": "command",
    "containsAny": [
      "node --test tests/",
      "node --test test/"
    ]
  },
  "actions": [
    "EXPLAIN_TO_USER"
  ],
  "indicators": [],
  "knowledge": {
    "environment": "Node.js 24 on Windows (PowerShell 5.1 / cmd.exe)",
    "symptom": "Running `node --test tests/` fails or finds zero tests instead of executing test files inside the folder.",
    "rootCause": "Windows shell does not expand POSIX directory arguments the same way as Linux shells in Node 24 test runner.",
    "verifiedFix": "Pass an explicitly quoted file glob such as `node --test \"tests/*.test.js\"` inside package.json scripts so Node performs cross-platform glob expansion itself.",
    "verificationCheck": "Run `npm test` on Windows and verify all `*.test.js` suites execute with exit code 0.",
    "commandPattern": "node --test \"{TEST_DIR}/*.test.js\"",
    "commandRisk": "READ_ONLY",
    "license": "CC0-1.0",
    "sourceBasis": "SELF_AUTHORED_FIX"
  },
  "playbookSha256": "9c3e177d50820d47014d043ad01eb3efd89cc4bfde30621c6e7a8023493da82e",
  "snapshotSha256": "116114a19ef52fd932a20216d0c0a4136c3ef2489839d44e6e031683fb594cd2",
  "advisoryOnly": true
}
