Skip to content

Commit

Permalink
all options in selenium
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-fernandez committed Nov 28, 2024
1 parent 6b8b308 commit fe20729
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/datadog-instrumentations/src/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -861,12 +861,18 @@ addHook({

const LIBRARIES_BYPASSING_JEST_REQUIRE_ENGINE = [
'selenium-webdriver',
'selenium-webdriver/chrome',
'selenium-webdriver/edge',
'selenium-webdriver/safari',
'selenium-webdriver/firefox',
'selenium-webdriver/ie',
'selenium-webdriver/chromium',
'winston'
]

function shouldBypassJestRequireEngine (moduleName) {
return (
LIBRARIES_BYPASSING_JEST_REQUIRE_ENGINE.some(library => moduleName === library)
LIBRARIES_BYPASSING_JEST_REQUIRE_ENGINE.includes(moduleName)
)
}

Expand Down

0 comments on commit fe20729

Please sign in to comment.