← All procedures

vitest.stop

Stop a vitest watch process (all of them without an id)

CLI
Package
@procedures/vitest · README
Path
["vitest","stop"]
CLI
mark vitest stop
As data
{"$proc":["vitest","stop"],"input":{}}

Use it

In TypeScript

import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/vitest"; // registers its procedures

const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["vitest","stop"], {});
console.log(JSON.stringify(result));

From the command line

$ mark vitest stop

As data, in a program

{ "$proc": ["vitest", "stop"], "input": {} }

Input

FieldTypeRequiredDefaultDescription
idstringnoThe id that vitest.watch gave. Without it, every vitest watch process stops.

Output

FieldTypeRequiredDefaultDescription
successbooleanyesFalse when an id was given and no running watch process has it
stoppedstring[]yesThe ids of the processes that stopped
JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "id": {
        "description": "The id that vitest.watch gave. Without it, every vitest watch process stops.",
        "type": "string"
      }
    }
  },
  "output": {
    "type": "object",
    "properties": {
      "success": {
        "type": "boolean",
        "description": "False when an id was given and no running watch process has it"
      },
      "stopped": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "The ids of the processes that stopped"
      }
    },
    "required": [
      "success",
      "stopped"
    ],
    "additionalProperties": {}
  }
}