샘플
Capture and drain Happy DOM console output through VirtualConsolePrinter, including grouped entries, filtered string reads, and custom-console bypass behavior
sha256:3098b65e11bf49d14ab84c27e05ab483a1e7c1eeae701327dadd384fd3ad8cd0
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Capture and drain Happy DOM console output through VirtualConsolePrinter, including grouped entries, filtered string reads, and custom-console bypass behavior HOW
- 패키지
- happy-dom 20.11.2
- 환경
- node
- 생성일
- 2026-08-17T01:52:28Z
흔히 이렇게 알고 있다
Happy DOM writes console output directly to the host console, and filtering virtual console output leaves unmatched entries queued for a later read.
이 샘플의 작성자가 여기서 개발자나 모델이 기대할 법한 내용으로 적어둔 것이다. 아래 계약이 실제로 실행된 것이다.
컨트랙트
- A default Window buffers log, warn, and error calls as exact structured entries with type, level, message, and null group metadata
- console.group records a group entry and attaches the same group metadata to nested warn and error entries
- VirtualConsolePrinter.read returns the buffered entries and destructively drains the queue
- readAsString with an error-level filter formats matching entries while also draining unmatched entries
- Supplying a custom console routes log calls to that console and leaves the Window virtual console queue empty
파일
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9