(content: string)
| 21 | }); |
| 22 | |
| 23 | function writeTempPython(content: string): string { |
| 24 | const tempFile = path.join( |
| 25 | os.tmpdir(), |
| 26 | `test-provider-${Date.now()}-${Math.random().toString(16).slice(2)}.py`, |
| 27 | ); |
| 28 | fs.writeFileSync(tempFile, content); |
| 29 | tempFiles.push(tempFile); |
| 30 | return tempFile; |
| 31 | } |
| 32 | |
| 33 | it('should handle heavy imports efficiently (load once)', async () => { |
| 34 | const scriptPath = writeTempPython(` |
no test coverage detected
searching dependent graphs…