-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
jest-resolve
to resolve modules based on the Facebook module re…
…solution algorithm. Summary: This refactors Runtime.js and TestRunner.js and pulls out the resolution code into a new module `jest-resolve` which now encodes Facebook's module resolution algorithm. It provides the second half of node-haste and together with `jest-haste-map` can be seen as a full replacement. There is very little new code in this diff. Most code is existing code that was lifted from another module and brought together. The next step after this diff will be to see if it makes sense to fork the `resolve` module and speed up how it works. It doesn't come with its own tests (yet) because its functionality is completely covered by all the tests in Runtime.js. I have also cleaned up all of the Runtime tests and added a new `createRuntime` helper for testing, which should make it much easier from now on to change how an instance of Runtime is constructed for tests. Closes #1007 Reviewed By: dmitriiabramov Differential Revision: D3302805 fbshipit-source-id: d1c96de7ed09e36aa1b2b5a4656260e79d1fb3e2
- Loading branch information
Showing
30 changed files
with
1,114 additions
and
982 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"lerna": "2.0.0-beta.7", | ||
"lerna": "2.0.0-beta.10", | ||
"version": "12.0.2" | ||
} |
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.