Created
March 24, 2021 16:04
-
-
Save csouchet/0e3834451dc541c052022e08f61fcc5f to your computer and use it in GitHub Desktop.
Configure Puppeteer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
server: { | |
// How you build your bundle. If you use Rollup, add the plugin rollup-plugin-serve with the configuration serve({ contentBase: ‘dist’, port: 10002 }) | |
command: `npm run start`, | |
port: 10002, | |
// if default or tcp, the test starts right await whereas the dev server is not available on http | |
protocol: 'http', | |
// in ms | |
launchTimeout: 30000, | |
debug: true, | |
}, | |
launch: { | |
dumpio: true, | |
headless: process.env.HEADLESS !== 'false', | |
args: ['--disable-infobars', '--no-sandbox', '--disable-setuid-sandbox'], | |
timeout: 120000, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment