chore(tools): tests in a docker container

This commit is contained in:
Valeriy
2019-02-24 03:10:27 +03:00
committed by mrugesh mohapatra
parent 01edc58a2a
commit aa6305778f
4 changed files with 37 additions and 3 deletions

View File

@ -108,8 +108,15 @@ async function runTests() {
logLevel: 0
});
browser = await puppeteer.launch({
args: ['--no-sandbox']
// dumpio: true
args: [
// Required for Docker version of Puppeteer
'--no-sandbox',
'--disable-setuid-sandbox',
// This will write shared memory files into /tmp instead of /dev/shm,
// because Dockers default for /dev/shm is 64MB
'--disable-dev-shm-usage'
// dumpio: true
]
});
global.Worker = createPseudoWorker(await newPageContext(browser));
page = await newPageContext(browser);