@ihyeon/flow-qa 0.10.9 → 0.10.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/cli.js +3 -0
- package/package.json +1 -1
package/dist/src/cli.js
CHANGED
|
@@ -431,6 +431,9 @@ export async function main(args) {
|
|
|
431
431
|
return data;
|
|
432
432
|
};
|
|
433
433
|
const before = await load(arg), after = await load(second);
|
|
434
|
+
if (before.runId && before.runId === after.runId) {
|
|
435
|
+
throw new Error(localized(locale, 'A comparison needs two different runs.', '서로 다른 두 실행을 선택해야 합니다.'));
|
|
436
|
+
}
|
|
434
437
|
const sameSelection = JSON.stringify(before.cases.map((item) => item.id).sort()) === JSON.stringify(after.cases.map((item) => item.id).sort());
|
|
435
438
|
const comparable = before.suiteId === after.suiteId && before.suiteHash === after.suiteHash && sameReportTarget(before.target, after.target) && sameSelection;
|
|
436
439
|
console.log(comparable ? localized(locale, 'Comparing the same suite, target and case selection (check external data state separately)', '동일 명세·대상·케이스 범위 비교 (외부 데이터 상태는 별도 확인)') : localized(locale, 'Suite, target or case selection differs; no direct regression verdict is made.', '명세·대상 또는 케이스 범위가 달라 직접적인 회귀 판정은 하지 않습니다.'));
|