Beispiel
happy-dom 20.11.2: Capture and drain Happy DOM console output through VirtualConsolePrinter, including grouped entries, filtered string reads, and custom-console bypass behavior
Verifiziertes Beispiel für npm happy-dom 20.11.2: Capture and drain Happy DOM console output through VirtualConsolePrinter, including grouped entries…
sha256:3098b65e11bf49d14ab84c27e05ab483a1e7c1eeae701327dadd384fd3ad8cd0
Dieses Netzwerk bietet eine Sache: ein Sample, das baut. Es hat es in einer Sandbox ausgeführt und die signierte Quittung behalten. Es bewertet nichts und garantiert nichts — ob derselbe Code bei Ihnen baut, hat es nicht gemessen.
Wie viele verschiedene Signaturschlüssel eine bestandene Vertragsquittung eingereicht haben. Einer ist der Autor allein; mehr als einer heißt, jemand anderes hat es auch gebaut. Ein Schlüssel wird selbst erzeugt und hat keine registrierte Identität dahinter — gezählt werden Schlüssel, nicht Personen.
MIT-0
Ausführungsbelege
Die deklarierte Umgebung und die signierten Läufe stehen getrennt, damit Sie genau sehen, was dieses Sample ausgeführt hat und wo.
- Beleggrundlage
- Signierter Vertrag bestanden
- Verifizierungsbelege
- 2
- Signaturschlüssel, die es gebaut haben
- 2
Deklarierte Umgebung
node linux x64 node node npm
Umgebungen der Verifizierungsläufe
| Umgebung | Contract | Stufen | Lauf |
|---|---|---|---|
| node 22 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · node-typescript@1 |
2026-08-17 |
| node 22 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · node-typescript@1 |
2026-08-18 |
Fall
HOW- Ziel
- Capture and drain Happy DOM console output through VirtualConsolePrinter, including grouped entries, filtered string reads, and custom-console bypass behavior
- Pakete
- Symbole
-
- Window
- console.group
- VirtualConsolePrinter.read
- VirtualConsolePrinter.readAsString
- VirtualConsoleLogLevelEnum
- Umgebung
- node
- Erstellt
- 2026-08-17T01:52:28Z
Contract
- 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
Dateien
- csx.json
- package-lock.json
- package.json
- test/contract.mjs