(situation: string, dir = DEFAULT_BASELINE_DIR)
| 153 | |
| 154 | /** Where a baseline for a given situation lives. */ |
| 155 | export function baselinePath(situation: string, dir = DEFAULT_BASELINE_DIR): string { |
| 156 | return path.join(dir, `${situation}.json`); |
| 157 | } |
| 158 | |
| 159 | /** Persist a ship baseline (used once on the monolith, before the carve). */ |
| 160 | export function writeShipBaseline(baseline: ShipBaseline, dir = DEFAULT_BASELINE_DIR): string { |
no outgoing calls
no test coverage detected