(config: MemLabConfig, args: ParsedArgs)
| 28 | } |
| 29 | |
| 30 | async parse(config: MemLabConfig, args: ParsedArgs): Promise<void> { |
| 31 | const name = this.getOptionName(); |
| 32 | if (!args[name]) { |
| 33 | return; |
| 34 | } |
| 35 | const file = args[name]; |
| 36 | if (!fs.existsSync(file)) { |
| 37 | utils.haltOrThrow(`Invalid snapshot file: ${file}`); |
| 38 | } |
| 39 | config.useExternalSnapshot = true; |
| 40 | if (!config.externalSnapshotFilePaths) { |
| 41 | config.externalSnapshotFilePaths = []; |
| 42 | } |
| 43 | config.externalSnapshotFilePaths[2] = file; |
| 44 | } |
| 45 | } |
nothing calls this directly
no test coverage detected