Skip to content

Commit

Permalink
chore(jest-puppeteer): better default options
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Feb 4, 2023
1 parent 207f6d7 commit 4a302dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jest-puppeteer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ process.env.TEST_SERVER_PORT = port;

module.exports = {
launch: {
headless: process.env.CI === "true",
headless: true,
},
browserContext: process.env.INCOGNITO ? "incognito" : "default",
server: {
command: `cross-env PORT=${port} node server`,
port,
launchTimeout: 4000,
usedPortAction: "kill",
},
};

0 comments on commit 4a302dd

Please sign in to comment.