(argv)
| 14 | import { join, relative, sep } from "node:path"; |
| 15 | |
| 16 | function parseArgs(argv) { |
| 17 | let profile = "full"; |
| 18 | |
| 19 | for (let i = 0; i < argv.length; i++) { |
| 20 | const a = argv[i]; |
| 21 | if (a === "--profile") { |
| 22 | const v = argv[i + 1]; |
| 23 | if (v === "full" || v === "reduced") { |
| 24 | profile = v; |
| 25 | i++; |
| 26 | continue; |
| 27 | } |
| 28 | throw new Error(`run-e2e: invalid --profile value: ${String(v)}`); |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | return { profile }; |
| 33 | } |
| 34 | |
| 35 | function listDirSorted(dir) { |
| 36 | const entries = readdirSync(dir); |