79260547

Date: 2024-12-07 12:01:59
Score: 3
Natty:
Report link

SOLUTION for me

Thanks to Rakesh's comment, I installed @jest/globals and imported expect from that. I also set esModuleInterop to false in my tsconfig and installed this package: @types/testing-library__jest-dom

Now my code is without red squiggly lines :)

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Daniel Erdos