I thought I understood what headless was in jest-puppeteer. I understood it to be a way to run tests without running through the tests in the browser. When I look at this documentation headless testing it suggests that the browser is still involved with headless testing. I also notice even with this jest-puppeteer config, the browser opens but the user flow is not visualized in the website. It is simply the opening page however it looks like the tests are running under the hood. What is headless exactly in jest-puppeteer and why does this jest-puppeteer.config.js file still open the browser? And since this is opening the browser is this suitable for testing run as part of a deployment pipeline?
module.exports = {
launch: {
headless: true
},
server: {
command: "REACT_APP_ENV=local react-scripts start",
port: 3000,
launchTimeout: 20000,
debug: false,
}
}