79416390

Date: 2025-02-05 23:01:22
Score: 0.5
Natty:
Report link

I needed to add a jest-setup.ts with the import '@testing-library/jest-dom' to make the test runner happy.

The missing piece for my IDE (Rider) was to add that jest-setup.ts to the include array in my tsconfig.json:

  "include": ["src/**/*", "jest-setup.ts"]

as documented here: https://github.com/testing-library/jest-dom?tab=readme-ov-file#with-typescript

Reasons:
  • Blacklisted phrase (0.5): I need
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Johann