CodeSampleX

サンプル

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.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート