(scriptName: string, scriptContent: string)
| 22 | const providers: PythonProvider[] = []; |
| 23 | |
| 24 | const createProvider = (scriptName: string, scriptContent: string) => { |
| 25 | const scriptPath = path.join(tempDir, scriptName); |
| 26 | fs.writeFileSync(scriptPath, scriptContent); |
| 27 | const provider = new PythonProvider(scriptPath, { |
| 28 | id: `python:${scriptName}`, |
| 29 | config: { basePath: tempDir }, |
| 30 | }); |
| 31 | providers.push(provider); |
| 32 | return provider; |
| 33 | }; |
| 34 | |
| 35 | beforeAll(async () => { |
| 36 | // Reset Python state |
no test coverage detected
searching dependent graphs…