mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
18 lines
400 B
JavaScript
18 lines
400 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
|
|
|
|
module.exports = {
|
|
server: {
|
|
command: `http-server -a 127.0.0.1 --port ${port} ./www`,
|
|
port: port,
|
|
launchTimeout: 5000
|
|
},
|
|
launch: {
|
|
dumpio: true,
|
|
headless: openChrome != 'true',
|
|
},
|
|
} |