mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
Add env variable PUPPETEER_OPEN_CHROME to decide whether to open chrome in test or not
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
PUPPETEER_HOST = http://127.0.0.1:8080
|
PUPPETEER_HOST = http://127.0.0.1:8080
|
||||||
PUPPETEER_PORT = 8080
|
PUPPETEER_PORT = 8080
|
||||||
|
PUPPETEER_OPEN_CHROME = false
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
PUPPETEER_HOST = http://127.0.0.1:8080
|
PUPPETEER_HOST = http://127.0.0.1:8080
|
||||||
PUPPETEER_PORT = 8080
|
PUPPETEER_PORT = 8080
|
||||||
|
PUPPETEER_OPEN_CHROME = true
|
||||||
|
|||||||
@@ -39,3 +39,4 @@ npm-debug.log*
|
|||||||
|
|
||||||
src/app/architect/
|
src/app/architect/
|
||||||
src/environments/environment.e2e.ts
|
src/environments/environment.e2e.ts
|
||||||
|
.env
|
||||||
@@ -2,16 +2,17 @@
|
|||||||
require('dotenv').config()
|
require('dotenv').config()
|
||||||
|
|
||||||
const port = process.env.PUPPETEER_PORT
|
const port = process.env.PUPPETEER_PORT
|
||||||
|
const host = process.env.PUPPETEER_HOST
|
||||||
|
const openChrome = process.env.PUPPETEER_OPEN_CHROME
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
server: {
|
server: {
|
||||||
command: `http-server --port ${port} ./www`,
|
command: `http-server -a 127.0.0.1 --port ${port} ./www`,
|
||||||
port: port,
|
port: port,
|
||||||
launchTimeout: 5000
|
launchTimeout: 5000
|
||||||
},
|
},
|
||||||
|
|
||||||
launch: {
|
launch: {
|
||||||
dumpio: true,
|
dumpio: true,
|
||||||
headless: false,
|
headless: openChrome != 'true',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user