jest-puppeteer.config.js 446 B

12345678910
  1. // ps https://github.com/GoogleChrome/puppeteer/issues/3120
  2. module.exports = {
  3. launch: {
  4. args: ['--disable-gpu', '--disable-dev-shm-usage', '--no-first-run', '--no-zygote','--window-size=1920,1080'],
  5. headless: false, // 是否为无头模式
  6. defaultViewport: { width: 1920, height: 700 }, // 默认窗口的大小
  7. // slowMo: process.env.SLOWMO ? process.env.SLOWMO : 0, // 是否慢动作执行测试
  8. devtools: true
  9. },
  10. };