Skip to content
Permalink
Browse files
Fixed error when running tests,
  • Loading branch information
sellers3 committed Nov 28, 2019
1 parent e3c7743 commit 901a4ce35d164d470af6e9bd4e8545bda56a89f0
Show file tree
Hide file tree
Showing 6 changed files with 3,706 additions and 89 deletions.
@@ -19,7 +19,7 @@ const toMatchImageSnapshot = configureToMatchImageSnapshot({
expect.extend({ toMatchImageSnapshot })

beforeAll( async() => {
browser = await puppeteer.launch({ headless: true, slowMo: delayMS, args: [`--window-size=${width},${height} --no-sandbox`] })
browser = await puppeteer.launch({ headless: true, slowMo: delayMS, args: [`--window-size=${width},${height}`, '--no-sandbox'] })
page = await browser.newPage()
await page.setViewport({ width, height })
})
@@ -19,7 +19,7 @@ const toMatchImageSnapshot = configureToMatchImageSnapshot({
expect.extend({ toMatchImageSnapshot })

beforeAll( async() => {
browser = await puppeteer.launch({ headless: true, slowMo: delayMS, args: [`--window-size=${width},${height} --no-sandbox`] })
browser = await puppeteer.launch({ headless: true, slowMo: delayMS, args: [`--window-size=${width},${height}`, '--no-sandbox'] })
page = await browser.newPage()
await page.setViewport({ width, height })
})
@@ -4,7 +4,7 @@ module.exports = {
displayName: 'test',
verbose: true,
collectCoverage: true,
'preset': 'jest-puppeteer',
"preset": "jest-puppeteer",
coverageThreshold: {
global: {
branches: 0,
@@ -6,7 +6,7 @@ module.exports = {
port: 8080,
},
launch: {
headless: false,
headless: true,
devtools: true,
timeout: 30000
}

0 comments on commit 901a4ce

Please sign in to comment.