chore(tools): tests in a docker container
This commit is contained in:
committed by
mrugesh mohapatra
parent
01edc58a2a
commit
aa6305778f
@ -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 Docker’s default for /dev/shm is 64MB
|
||||
'--disable-dev-shm-usage'
|
||||
// dumpio: true
|
||||
]
|
||||
});
|
||||
global.Worker = createPseudoWorker(await newPageContext(browser));
|
||||
page = await newPageContext(browser);
|
||||
|
Reference in New Issue
Block a user