You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to jest@26.5.x and jest-circus@26.5.x, all Detox tests began failing with:
TypeError: expect(...).toBeVisible is not a function
Expected behavior
Detox should initialize its global variables correctly, i.e.: Jest's expect should not shadow the Detox's expect.
Actual behavior
CustomDetoxEnvironment sets Detox globals and matchers including this.global.expect, but then, a few moments later the Detox's expect gets overwritten with Jest's one.
noomorph
changed the title
urgent: expect(...).toBeVisible is not a function
bug(jest): expect(...).toBeVisible is not a function
Oct 5, 2020
noomorph
changed the title
bug(jest): expect(...).toBeVisible is not a function
bug(jest-circus): expect(...).toBeVisible is not a function
Oct 5, 2020
Description
After upgrading to
jest@26.5.x
andjest-circus@26.5.x
, all Detox tests began failing with:Expected behavior
Detox should initialize its global variables correctly, i.e.: Jest's
expect
should not shadow the Detox'sexpect
.Actual behavior
CustomDetoxEnvironment
sets Detox globals and matchers includingthis.global.expect
, but then, a few moments later the Detox's expect gets overwritten with Jest's one.Screenshots
See: jestjs/jest#10484
The text was updated successfully, but these errors were encountered: