Files
doneit-web/jest-puppeteer.config.js
T

18 lines
400 B
JavaScript
Raw Normal View History

2021-07-10 08:45:51 +01:00
// jest-puppeteer.config.js
2021-07-10 09:11:03 +01:00
require('dotenv').config()
const port = process.env.PUPPETEER_PORT
const host = process.env.PUPPETEER_HOST
const openChrome = process.env.PUPPETEER_OPEN_CHROME
2021-07-10 09:11:03 +01:00
2021-07-10 08:45:51 +01:00
module.exports = {
server: {
command: `http-server -a 127.0.0.1 --port ${port} ./www`,
2021-07-10 09:11:03 +01:00
port: port,
2021-07-10 08:45:51 +01:00
launchTimeout: 5000
},
launch: {
dumpio: true,
headless: openChrome != 'true',
2021-07-10 08:45:51 +01:00
},
}