Files
ComfyUI_frontend/browser_tests/fixtures/utils/coverageConstants.ts
bymyself 7563a0fcf1 fix: extract shared COLLECT_COVERAGE, fix type assertion, add comments
- Extract COLLECT_COVERAGE to shared coverageConstants.ts to avoid drift
  between ComfyPage.ts and playwright.config.ts.
- Add coupling comment for COVERAGE_ATTACHMENT magic string.
- Use Object.assign instead of as Record<string, unknown> for source.
- Add comment explaining resetOnNavigation: false.

Addresses review feedback:
https://github.com/Comfy-Org/ComfyUI_frontend/pull/10930#discussion_r3047998513
https://github.com/Comfy-Org/ComfyUI_frontend/pull/10930#discussion_r3047998518
https://github.com/Comfy-Org/ComfyUI_frontend/pull/10930#discussion_r3054600476
https://github.com/Comfy-Org/ComfyUI_frontend/pull/10930#discussion_r3047998519
https://github.com/Comfy-Org/ComfyUI_frontend/pull/10930#discussion_r3047998521
2026-04-08 18:16:04 -07:00

2 lines
72 B
TypeScript

export const COLLECT_COVERAGE = process.env.COLLECT_COVERAGE === 'true'