Run Jest Tests
run-testExecute Jest tests on implementation and test files in an isolated workspace, returning detailed results including pass/fail status, error messages, stack traces, and code coverage metrics.
Instructions
Execute Jest tests on provided implementation and test files in an isolated workspace. Returns detailed test results including pass/fail status, individual test results, error messages, stack traces, and code coverage metrics.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"implementationFile": "<implementationFile>",
"testFile": "<testFile>"
},
"name": "run-test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| implementationFile | Yes | Implementation file to test | |
| testFile | Yes | Test file containing Jest tests | |
| language | No | Language of the files | typescript |
| workspaceId | No | Optional workspace ID to reuse existing workspace | |
| timeoutMs | No | Test execution timeout in milliseconds |