Skip to content

Instantly share code, notes, and snippets.

@csouchet
Created March 24, 2021 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csouchet/0e3834451dc541c052022e08f61fcc5f to your computer and use it in GitHub Desktop.
Save csouchet/0e3834451dc541c052022e08f61fcc5f to your computer and use it in GitHub Desktop.
Configure Puppeteer
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