{
  "id": "tests/bun-test",
  "family": "test-results",
  "description": "Compact bun test output while preserving failures and summary lines.",
  "match": {
    "toolNames": ["exec"],
    "argv0": ["bun"],
    "argvIncludes": [["test"]]
  },
  "transforms": {
    "stripAnsi": true,
    "dedupeAdjacent": true,
    "trimEmptyEdges": true
  },
  "filters": {
    "skipPatterns": [
      "^> .+$",
      "^\\s*RUN\\s+.+$",
      "^\\s*Start at\\s+.+$"
    ],
    "keepPatterns": [
      "^\\s*❯\\s+.+",
      "^\\s*✓\\s+.+",
      "^\\s*FAIL\\s+.+",
      "^\\s*PASS\\s+.+",
      "^AssertionError: .+",
      "^Error: .+",
      "^Caused by: .+",
      "^\\s*Test Files\\s+.+",
      "^\\s*Tests\\s+.+",
      "^\\s*Duration\\s+.+",
      "^⎯⎯⎯.+"
    ]
  },
  "summarize": {
    "head": 12,
    "tail": 10
  },
  "failure": {
    "preserveOnFailure": true,
    "head": 18,
    "tail": 18
  },
  "counters": [
    {
      "name": "failed",
      "pattern": "fail",
      "flags": "i"
    },
    {
      "name": "passed",
      "pattern": "pass",
      "flags": "i"
    }
  ]
}
