Skip to content

Commit

Permalink
Switch back to headless: true now “new headless” is the default
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Feb 12, 2024
1 parent eb29f4d commit c937e9f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jest-puppeteer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ module.exports = {
launch: {
/**
* Allow headless mode switching using `HEADLESS=false`
* but default to `new` to skip deprecation warning
*
* {@link https://developer.chrome.com/articles/new-headless/}
*/
headless: process.env.HEADLESS !== 'false' ? 'new' : false
headless: process.env.HEADLESS !== 'false'
},

/**
Expand Down

0 comments on commit c937e9f

Please sign in to comment.