build: fix e2e (#246)

* fix: e2e testing

* fix: e2e testing

* fix: e2e testing

* fix: e2e testing

* fix: e2e testing

* fix: e2e testing
This commit is contained in:
Juan Picado @jotadeveloper
2019-11-08 06:23:22 +01:00
committed by GitHub
parent c9f6bf43ae
commit f1971edf6d
8 changed files with 59 additions and 31 deletions

View File

@@ -10,7 +10,12 @@ const DIR = path.join(os.tmpdir(), 'jest_puppeteer_global_setup');
module.exports = async function() {
console.log(green('Setup Puppeteer'));
const browser = await puppeteer.launch({ headless: true, /* slowMo: 300 */ args: ['--no-sandbox'] });
const browser = await puppeteer.launch({
headless: true,
// slowMo: 600,
// devtools: true,
args: ['--no-sandbox'],
});
global.__BROWSER__ = browser;
mkdirp.sync(DIR);
fs.writeFileSync(path.join(DIR, 'wsEndpoint'), browser.wsEndpoint());