berry icon indicating copy to clipboard operation
berry copied to clipboard

[Bug?]: Puppeteer can not run server options in config files

Open luanlai2201 opened this issue 1 year ago • 0 comments

Self-service

  • [ ] I'd be willing to implement a fix

Describe the bug

The terminal stopped responding when I tried to run Puppeteer with open browser command

To reproduce

Setup the jest-puppeteer.config.js file like this code below module.exports = { server: { command: 'yarn serve', port: 4000, launchTimeout: 300000, }, launch: { executablePath: '/usr/bin/chromium', headless: true, args: ['--no-sandbox', '--disable-setuid-sandbox'], }, };

Try to run jest with it

Environment

System:
    OS: macOS 14.2.1
    CPU: (10) arm64 Apple M2 Pro
Binaries:
    Node: 18.17.1 - /private/var/folders/px/91294x4n3jbcsg9ftr925d2w0000gn/T/xfs-8568e640/node
    Yarn: 4.0.2 - /private/var/folders/px/91294x4n3jbcsg9ftr925d2w0000gn/T/xfs-8568e640/yarn
    npm: 9.6.7 - ~/.nvm/versions/node/v18.17.1/bin/npm

Additional context

No response

luanlai2201 avatar Feb 16 '24 01:02 luanlai2201