@ihyeon/error-to-test 0.4.7 → 0.4.8

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/README.ko.md CHANGED
@@ -335,6 +335,6 @@ error-to-test results ./analysis --fail-on failed --fail-on error --fail-on not-
335
335
 
336
336
  알려진 자격증명·이메일·URL 인증/쿼리 정보는 결과에서 정제합니다. 민감정보가 포함된 실행 단계나 기대 결과는 변경해 통과시키지 않고 질문으로 남깁니다. 모든 개인정보를 제거한다고 보장하지 않으므로 실제 업무 데이터를 입력하기 전에는 별도로 정제하세요. 비공개 오류는 셸 기록에 남는 인자 대신 파일·표준 입력을 사용하세요.
337
337
 
338
- 검증은 `npm run check`, `npm run check:package`입니다. `npm run smoke:ecosystem`은 현재 소스의 tarball과 공개 Browser Error Log 0.2.10·Flow QA 0.8.8을 새 환경에 설치합니다. Chromium에서 실제 JavaScript·resource 오류 수집, 검토 전 차단, 수정 전 실패·수정 후 통과, 선택 실행 재연결과 미실행 게이트, 설치된 UI·디자인 시스템 연결을 검사합니다. CI 릴리스도 이 검사를 통과해야 합니다. 결과는 `output/ecosystem/verification.json`에 기록하며 운영 서비스·실제 로그인·모델을 호출하지 않습니다.
338
+ 검증은 `npm run check`, `npm run check:package`입니다. `npm run smoke:ecosystem`은 현재 소스의 tarball과 공개 Browser Error Log 0.2.18·Flow QA 0.9.9를 새 환경에 설치합니다. Chromium에서 실제 JavaScript·resource 오류 수집, 검토 전 차단, 수정 전 실패·수정 후 통과, 선택 실행 재연결과 미실행 게이트, 설치된 UI·디자인 시스템 연결을 검사합니다. CI 릴리스도 이 검사를 통과해야 합니다. 결과는 `output/ecosystem/verification.json`에 기록하며 운영 서비스·실제 로그인·모델을 호출하지 않습니다.
339
339
 
340
340
  로컬 소스 조합은 `FLOW_QA_SOURCE=/path/to/flow-qa BROWSER_ERROR_SOURCE=/path/to/browser-error-log npm run smoke:flowqa`로 별도 검사할 수 있습니다. 자세한 입력 계약과 제한은 [영문 문서](README.md)에 있습니다.
package/README.md CHANGED
@@ -474,6 +474,6 @@ npm run smoke:ecosystem
474
474
  FLOW_QA_SOURCE=/path/to/flow-qa BROWSER_ERROR_SOURCE=/path/to/browser-error-log npm run smoke:flowqa
475
475
  ```
476
476
 
477
- `smoke:ecosystem` installs the current built tarball alongside published Browser Error Log 0.2.10 and Flow QA 0.8.8 in a fresh temporary consumer. It checks real JavaScript/resource capture, partial export preservation, the review gate, failures before fixture repair and passes after it, selected-run linkage and the not-run gate, and installed UI/design-system assets. CI requires this check before release preparation. Evidence is written to `output/ecosystem/verification.json`. Set `ERROR_TO_TEST_RELEASE_VERSION=X.Y.Z` to test that exact registry release instead of the local tarball. The script installs Chromium and only runs a controlled local fixture, without production access, login, or model calls.
477
+ `smoke:ecosystem` installs the current built tarball alongside published Browser Error Log 0.2.18 and Flow QA 0.9.9 in a fresh temporary consumer. It checks real JavaScript/resource capture, partial export preservation, the review gate, failures before fixture repair and passes after it, selected-run linkage and the not-run gate, and installed UI/design-system assets. CI requires this check before release preparation. Evidence is written to `output/ecosystem/verification.json`. Set `ERROR_TO_TEST_RELEASE_VERSION=X.Y.Z` to test that exact registry release instead of the local tarball. The script installs Chromium and only runs a controlled local fixture, without production access, login, or model calls.
478
478
 
479
479
  The optional `smoke:flowqa` uses local Browser Error Log and Flow QA sources in a controlled Chromium demo. It additionally preserves an unresolved case and checks stale-source rejection. It requires their local source/dependencies and an installed Chromium browser.
package/dist/cli.js CHANGED
@@ -283,12 +283,22 @@ export async function main(args = process.argv.slice(2)) {
283
283
  throw new Error('link-run requires a bundle directory and --report.');
284
284
  if (Object.keys(values).some(key => key !== 'report' && key !== 'help'))
285
285
  throw new Error('Unsupported option for link-run.');
286
+ let reportText;
287
+ try {
288
+ reportText = await readBoundedFile(resolve(values.report), 2 * 1024 * 1024);
289
+ }
290
+ catch (error) {
291
+ if (error.code === 'ENOENT') {
292
+ throw new Error('Flow QA report file not found. Use the qa-report.json path printed by flow-qa run.');
293
+ }
294
+ throw new Error('The Flow QA report must be a readable UTF-8 file within 2 MiB.');
295
+ }
286
296
  let report;
287
297
  try {
288
- report = JSON.parse(await readBoundedFile(resolve(values.report), 2 * 1024 * 1024));
298
+ report = JSON.parse(reportText);
289
299
  }
290
300
  catch {
291
- throw new Error('The Flow QA report must be a JSON file within 2 MiB.');
301
+ throw new Error('The Flow QA report contains invalid JSON. Use qa-report.json from a completed Flow QA run.');
292
302
  }
293
303
  const file = await linkFlowQaReport(resolve(positionals[1]), report);
294
304
  process.stdout.write(`Run linked: ${file}\nSource issues were not automatically closed.\n`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ihyeon/error-to-test",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "Turn captured browser errors and pasted error reports into traceable regression test candidates.",
5
5
  "license": "MIT",
6
6
  "author": "Hyeonse Im",