{
  "id": "tests/mocha",
  "family": "test-results",
  "description": "Compact Mocha output while preserving failing tests and summary counts.",
  "match": {
    "toolNames": ["exec"],
    "commandIncludes": ["mocha"]
  },
  "transforms": {
    "stripAnsi": true,
    "dedupeAdjacent": true,
    "trimEmptyEdges": true
  },
  "summarize": {
    "head": 12,
    "tail": 10
  },
  "failure": {
    "preserveOnFailure": true,
    "head": 18,
    "tail": 18
  },
  "counters": [
    {
      "name": "failing",
      "pattern": "\\bfailing\\b",
      "flags": "i"
    },
    {
      "name": "passing",
      "pattern": "\\bpassing\\b",
      "flags": "i"
    }
  ]
}
