dimanche 19 janvier 2020

How to see matched files in the pattern matching option of a Jest execution?

When I execute tests with Jest, you have these options:

enter image description here

If I'm in a React app created with create-react-app, I run the test, I use the p options, and I digit the pattern, the list of matched files is shown:

enter image description here

Instead, when I run Jest in a custom app I created (adding Jest manually), the matched files are not shown:

enter image description here

How can I see the matched files in Jest like create-react-app does?

This is my current package.json's Jest section:

"jest": {
    "moduleDirectories": [
        "node_modules",
        "."
    ]
}

Aucun commentaire:

Enregistrer un commentaire