I try to create an intial setup for jest in react + typescript.I have completed the initial setup and try to check whether the test runs. When i run the test using the comma
For me, the problem was that my tsconfig.json was built with
tsconfig.json
"include": [ "src" ]
I had to change that to
"include": [ "src", "tests" ]
(My tests all being in directory 'tests')