Skip to content

this undefined in unit test of a class method #20056

Discussion options

You must be logged in to vote

You are not preserving the this correctly when calling the method via function. See bahmutov/cypress-examples@c0d239d and https://youtu.be/g_7LZXuEIMA

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by devjared1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants