{
  "$schema": "http://json-schema.org/schema",
  "version": 2,
  "cli": "nx",
  "title": "Vitest executor",
  "description": "Test using Vitest.",
  "type": "object",
  "properties": {
    "config": {
      "type": "string",
      "description": "The path to the local vitest config",
      "x-completion-type": "file",
      "x-completion-glob": "@(vitest|vite).config@(.js|.ts)"
    },
    "passWithNoTests": {
      "type": "boolean",
      "default": true,
      "description": "Pass the test even if no tests are found"
    },
    "testNamePattern": {
      "type": "string",
      "description": "Run tests with full names matching the pattern"
    },
    "mode": {
      "type": "string",
      "enum": ["test", "benchmark", "typecheck"],
      "default": "test",
      "description": "The mode that vitest will run on",
      "x-priority": "important"
    },
    "watch": {
      "type": "boolean",
      "default": false,
      "description": "Enable watch mode"
    },
    "reporters": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "An array of reporters to pass to vitest"
    },
    "update": {
      "type": "boolean",
      "default": false,
      "alias": "u",
      "description": "Update snapshots",
      "x-priority": "important"
    },
    "coverage": {
      "type": "boolean",
      "default": false,
      "description": "Enable coverage report",
      "x-priority": "important"
    },
    "reportsDirectory": {
      "type": "string",
      "description": "Directory to write coverage report to."
    },
    "testFile": {
      "description": "The name of the file to test.",
      "type": "string"
    }
  },
  "required": [],
  "examplesFile": "../../../docs/test-examples.md"
}
