mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
28 lines
603 B
JavaScript
28 lines
603 B
JavaScript
// jest-puppeteer.config.js
|
|
require('dotenv').config()
|
|
|
|
const port = process.env.PUPPETEER_PORT
|
|
const host = process.env.PUPPETEER_HOST
|
|
const openChrome = process.env.PUPPETEER_OPEN_CHROME
|
|
const chromPath = process.env.PUPPETEER_CHROME_PATH
|
|
|
|
module.exports = {
|
|
server: {
|
|
command: ` `,
|
|
port: port,
|
|
launchTimeout: 10000
|
|
},
|
|
launch: {
|
|
dumpio: true,
|
|
headless: openChrome != 'true',
|
|
product: 'chrome',
|
|
args: [`--window-size=1200,1080`],
|
|
defaultViewport: {
|
|
width:1200,
|
|
height:1080
|
|
},
|
|
// executablePath: chromPath
|
|
},
|
|
browserContext: 'default',
|
|
|
|
} |