()
| 31 | // Returns both tool and disposable temp directory |
| 32 | // Use with: using testEnv = createTestBashTool(); |
| 33 | function createTestBashTool() { |
| 34 | const tempDir = new TestTempDir("test-bash"); |
| 35 | const config = createTestToolConfig(process.cwd()); |
| 36 | config.runtimeTempDir = tempDir.path; // Override runtimeTempDir to use test's disposable temp dir |
| 37 | const tool = createBashTool(config); |
| 38 | |
| 39 | return { |
| 40 | tool, |
| 41 | [Symbol.dispose]() { |
| 42 | tempDir[Symbol.dispose](); |
| 43 | }, |
| 44 | }; |
| 45 | } |
| 46 | |
| 47 | describe("buildBashToolDescription", () => { |
| 48 | const cwd = "/workspace/root"; |
no test coverage detected