this
undefined in unit test of a class method
#20056
Answered
by
bahmutov
devjared1
asked this question in
Questions and Help
-
Beta Was this translation helpful? Give feedback.
Answered by
bahmutov
Feb 4, 2022
Replies: 1 comment
-
You are not preserving the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
devjared1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are not preserving the
this
correctly when calling the method via function. See bahmutov/cypress-examples@c0d239d and https://youtu.be/g_7LZXuEIMA