Skip to content

Commit 1f33ea0

Browse files
committed
feat(expect-puppeteer): Update default options to look at connect object
1 parent 9de05f0 commit 1f33ea0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/expect-puppeteer/src/options.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ export const setDefaultOptions = options => {
77
export const getDefaultOptions = () => {
88
if (
99
global.puppeteerConfig &&
10-
global.puppeteerConfig.launch &&
11-
global.puppeteerConfig.launch.slowMo &&
10+
(
11+
(global.puppeteerConfig.launch && global.puppeteerConfig.launch.slowMo) ||
12+
(global.puppeteerConfig.connect && global.puppeteerConfig.connect.slowMo)
13+
) &&
1214
defaultOptionsValue &&
1315
defaultOptionsValue.timeout
1416
) {

0 commit comments

Comments
 (0)