Когда я запускаю команду jest --bail --findRelatedTests src/components/BannerSet/BannerSet.tsx
, я получаю следующее сообщение:
No tests found, exiting with code 1
Run with `--passWithNoTests` to exit with code 0
No files found in C:\Users\user\code\repo.
Make sure Jest's configuration does not exclude this directory.
To set up Jest, make sure a package.json file exists.
Jest Documentation: facebook.github.io/jest/docs/configuration.html
Pattern: .\\src\\components\\BannerSet\\BannerSet.tsx - 0 matches
Однако у меня есть готовые файлы:
src/components/BannerSet/BannerSet.test.tsx
src/components/BannerSet/BannerSet.tsx
Почему нельзя Jest найти соответствующие тесты ? Запуск только jest
отлично работает.