N
N
newUser20212021-07-11 13:03:22
React
newUser2021, 2021-07-11 13:03:22

How to include Jest in a separate repository?

Good afternoon.
The project uses lerna.js. Each repository has a separate folder with tests. I added tests, but when I run them, I get this error

No tests found, exiting with code 1
Run with `--passWithNoTests` to exit with code 0
No files found in ...
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

Can you please tell me how to configure the config correctly?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question