forked from jestjs/jest
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New and fixed implementation for
jest —onlyChanged
:
* Look up changed files starting from test files rather than changed files * Deduplicate testPathDirs and changed test files * Use the git root dir for tests, not the test path dir so we get correct absolute paths (—onlyChanged *never* worked for jest itself, what!?) * This might not perform as well as it did before; we’ll see and I might rewrite this again, but for now this works pretty well. * Simplify the tests. I’m going to make them more robust in a follow-up but most of the things the tests were covering is handled by DependencyGraph
- Loading branch information
Showing
4 changed files
with
88 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.