* Parse versions and rendering mode from run hash.
(str)
| 101 | * Parse versions and rendering mode from run hash. |
| 102 | */ |
| 103 | function parseRunHash(str) { |
| 104 | const parts = str.split(TEST_HASH_SPLITTER); |
| 105 | // Convert back PR-123 to #123 for PR versions |
| 106 | const expectedVersion = parts[0] === 'PR' |
| 107 | ? parts[1].replace('PR-', '#') |
| 108 | : parts[1]; |
| 109 | const actualVersion = parts[2] === 'PR' |
| 110 | ? parts[3].replace('PR-', '#') |
| 111 | : parts[3]; |
| 112 | |
| 113 | return { |
| 114 | expectedSource: parts[0], |
| 115 | expectedVersion: expectedVersion, |
| 116 | actualSource: parts[2], |
| 117 | actualVersion: actualVersion, |
| 118 | renderer: parts[4], |
| 119 | useCoarsePointer: parts[5], |
| 120 | theme: parts[6] || 'none' |
| 121 | }; |
| 122 | } |
| 123 | |
| 124 | function getResultBaseDir() { |
| 125 | return path.join(RESULTS_ROOT_DIR, _runHash); |
no outgoing calls
no test coverage detected
searching dependent graphs…