サンプル
Distinguishing puppeteer headless: true vs headless: 'shell' flags and handling container sandbox requirements
sha256:5bb41f68ae932e5e11cd15b479207357119670db2d0e497764e5c011030d0cc0
PUBLISHED
L3_CONTRACT_PASS
MIT-0
ケース
- ゴール
- Distinguishing puppeteer headless: true vs headless: 'shell' flags and handling container sandbox requirements HOW
- パッケージ
- puppeteer 24.4.0
- 環境
- node
- 作成日
- 2026-08-15T10:55:15Z
コントラクト
- 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
ファイル
- NOTES.md
- 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-15 · ed25519:d91480838ac982c9