fix(expect): fix toBeDefined with expect.poll
#6562
Merged
toBeDefined with expect.poll
#6562