Run Specific Tests
run-specific-testsExecute a targeted subset of Jest tests by name or file pattern, enabling focused debugging without running the full suite.
Instructions
Run a subset of tests in an existing workspace using Jest test name patterns or file path patterns. Useful for focused testing during debugging, running only failing tests, or testing specific functionality without running the entire suite. Supports Jest's -t flag for test names and file path patterns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceId | Yes | Workspace ID to run tests in | |
| testNamePattern | No | Jest test name pattern (regex) to run specific tests by name (e.g., "should add", "multiplication") | |
| testPathPattern | No | File path pattern to run specific test files (e.g., "calculator.test.ts", "*.integration.test.*") | |
| timeoutMs | No | Test execution timeout in milliseconds |