Ejemplo
Distinguishing puppeteer headless: true vs headless: 'shell' flags and handling container sandbox requirements
sha256:5bb41f68ae932e5e11cd15b479207357119670db2d0e497764e5c011030d0cc0
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Distinguishing puppeteer headless: true vs headless: 'shell' flags and handling container sandbox requirements HOW
- Paquetes
- puppeteer 24.4.0
- Entorno
- node
- Creado
- 2026-08-15T10:55:15Z
Contrato
- assert puppeteer.defaultArgs({ headless: true }) includes --headless=new and excludes --headless
- assert puppeteer.defaultArgs({ headless: 'shell' }) includes --headless and excludes --headless=new
- assert puppeteer.defaultArgs({ headless: 'old' }) produces --headless=new instead of legacy --headless in modern Puppeteer
- assert puppeteer.defaultArgs() does not include --no-sandbox or --disable-setuid-sandbox by default
- assert puppeteer.executablePath('chrome-headless-shell') throws because channel expects ChromeReleaseChannel, not binary name
Archivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-15 · ed25519:d91480838ac982c9