| ... | ... | @@ -49,6 +49,16 @@ function test(projectCwd) { |
| 49 | 49 | console.log(" Phase 2: no match"); |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | | test("/Users/theo/Code/Work/ct/t3chat"); |
| 53 | | test("/Users/theo/Code/Work/lawn"); |
| 54 | | test(process.cwd()); |
| 52 | function getTestPaths() { |
| 53 | const cliPaths = process.argv.slice(2).map((p) => p.trim()).filter(Boolean); |
| 54 | if (cliPaths.length > 0) return cliPaths; |
| 55 | |
| 56 | const envPaths = process.env.TEST_PATHS?.split(path.delimiter).map((p) => p.trim()).filter(Boolean); |
| 57 | if (envPaths?.length) return envPaths; |
| 58 | |
| 59 | return [process.cwd()]; |
| 60 | } |
| 61 | |
| 62 | for (const p of getTestPaths()) { |
| 63 | test(path.resolve(p)); |
| 64 | } |