Skip to content

Commit

Permalink
feat(expect-puppeteer): Update default options to look at connect object
Browse files Browse the repository at this point in the history
  • Loading branch information
gidztech committed Aug 19, 2018
1 parent 9de05f0 commit 1f33ea0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/expect-puppeteer/src/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ export const setDefaultOptions = options => {
export const getDefaultOptions = () => {
if (
global.puppeteerConfig &&
global.puppeteerConfig.launch &&
global.puppeteerConfig.launch.slowMo &&
(
(global.puppeteerConfig.launch && global.puppeteerConfig.launch.slowMo) ||
(global.puppeteerConfig.connect && global.puppeteerConfig.connect.slowMo)
) &&
defaultOptionsValue &&
defaultOptionsValue.timeout
) {
Expand Down

0 comments on commit 1f33ea0

Please sign in to comment.