question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--findRelatedTests Configuration

See original GitHub issue

Hey, I already tried to get some help on Stack Overflow, but without success yet.

Is there a way to configure the behavior of --findRelatedTests? When I edit a JSON file with breaking changes, --findRelatedTests won’t find .jsx? files, that are importing the broken JSON files. However jest --watch finds them correctly.

I’m using --findRelatedTests in my pre-commit Hook.

Let me know if you need more information about my setup. I keep also the SO question up2date.

Thank you!

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

2reactions
thymikeecommented, Dec 11, 2018

Sounds like a bug! Can you use a proper template and provide a repro we can download?

0reactions
skyboyercommented, Dec 22, 2022

seems to be still actual

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jest CLI Options
Every one of Jest's Configuration options can also be specified through the CLI. Here is a brief overview: Running from the command line​....
Read more >
How does jest --findRelatedTests work under the hood?
This lookup relies directly on some Jest configuration, specifically roots and/or rootDir , to help resolve paths.
Read more >
Execute related jests specs for MRs with backend changes
Plan Run jest --findrelatedTests on MRs that contain backend changes Incremental benefits: shorter backend pipelines...
Read more >
Jest CLI Options - GitHub Pages
Every one of Jest's Configuration options can also be specified through the CLI. ... jest --findRelatedTests path/to/fileA.js path/to/fileB.js.
Read more >
@stryker-mutator/jest-runner - npm
This will override file-based config. undefined. enableFindRelatedTests (optional), Whether to run jest with the --findRelatedTests flag.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found