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
// component.test.jsexpect(node.style.color).toBe('red');// Worksconstred='red';expect(node.style.color).toBe(red);// Doesn't work
What happened:
I'm referencing a variable in the toX() methods, but the rule doesn't report.
I would've expected it to report. Is it intentional? Didn't find other issues mentioning this, but the selectors in the code don't seem to handle it.
eslint-plugin-jest-dom
version: 5.5.0node
version: 18.20.3npm
version: 10.2.3Relevant code or config:
What happened:
I'm referencing a variable in the
toX()
methods, but the rule doesn't report.I would've expected it to report. Is it intentional? Didn't find other issues mentioning this, but the selectors in the code don't seem to handle it.
Reproduction repository:
StackBlitz
The text was updated successfully, but these errors were encountered: