Beispiel
Use Puppeteer's built-in device and network presets with their actual export locations, descriptor fields, and units.
sha256:6f26f00d45b0a1407fa5a3007d28d57e574a471310f9a78784707aac8828e0b4
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Ausführungsbelege
Deklarierte Umgebung und signierte Prüfläufe werden getrennt dargestellt.
BeleggrundlageSignierter Vertrag bestanden
Verifizierungsbelege1
VerifizierungsstufeL3_CONTRACT_PASS
Deklarierte Umgebung
- Ausführungskontext
- node
- Betriebssystem
- linux
- Architektur
- x64
- Runtime
- node
- Sprache
- javascript
- Paketmanager
- npm
Umgebungen der Verifizierungsläufe
- Ausführungskontext
- node 22
- Betriebssystem
- linux alpine · musl
- Architektur
- x64
- Runtime
- node 22
- Sprache
- javascript
- Paketmanager
- npm
- Ausführung
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17
Fall
- Ziel
- Use Puppeteer's built-in device and network presets with their actual export locations, descriptor fields, and units. HOW
- Pakete
-
puppeteer 24.4.0
- Umgebung
- node
- Erstellt
- 2026-08-17T03:53:13Z
Häufige Annahme
Puppeteer's device and network presets are properties on the default export, device descriptors use mobile/touch keys, and network throughput values are kilobits per second.
So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.
Contract
- Puppeteer 24.4.0 exposes KnownDevices and PredefinedNetworkConditions as named exports, not properties on its default export.
- KnownDevices has separate iPhone 15 portrait and landscape descriptors whose viewport uses isMobile, hasTouch, and isLandscape.
- PredefinedNetworkConditions['Fast 3G'] records download/upload throughput in bytes per second and latency in milliseconds.
- Copying a network preset before customization leaves the process-wide preset unchanged.
Dateien
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Quellartefakt herunterladen (tar.gz)
Ursprungs-Seeder
csx-seed
Verifizierungsbelege
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-17 · ed25519:d91480838ac982c9