-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Haste2 #599
Haste2 #599
Commits on Feb 5, 2016
-
Initial implementation of the node-haste2 resolver.
This is a hybrid between node-haste1 and node-haste2 and currently only works with both of them hooked up. This is terrible.
Configuration menu - View commit details
-
Copy full SHA for 1a418ef - Browse repository at this point
Copy the full SHA 1a418efView commit details -
Rename and cleanups in HasteModuleLoader
* _nodeModuleNameToPath: _resolveNodeModuleName * _moduleNameToPath: _resolveModuleName * Remove package.json resolution, resolve.sync does this.
Configuration menu - View commit details
-
Copy full SHA for b237305 - Browse repository at this point
Copy the full SHA b237305View commit details -
Configuration menu - View commit details
-
Copy full SHA for a841f2f - Browse repository at this point
Copy the full SHA a841f2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6efc108 - Browse repository at this point
Copy the full SHA 6efc108View commit details -
Fix
buildLoader
call in tests to only resolve dependencies once (bu……ildLoader is called recursively).
Configuration menu - View commit details
-
Copy full SHA for 6ce50ca - Browse repository at this point
Copy the full SHA 6ce50caView commit details -
* Resolve mocks and mock dependencies properly through node-haste2
* Extract dependencies from `requireActual` and `requireMock`
Configuration menu - View commit details
-
Copy full SHA for c78a6d8 - Browse repository at this point
Copy the full SHA c78a6d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f76713 - Browse repository at this point
Copy the full SHA 4f76713View commit details -
Configuration menu - View commit details
-
Copy full SHA for b82a981 - Browse repository at this point
Copy the full SHA b82a981View commit details -
Stop using
_resourceMap
inside of HasteModuleLoader.(this adds two TODO items to make these two methods work properly again, but I’m unblocking myself by stubbing them out for now).
Configuration menu - View commit details
-
Copy full SHA for 77e0893 - Browse repository at this point
Copy the full SHA 77e0893View commit details -
Configuration menu - View commit details
-
Copy full SHA for 95d6d99 - Browse repository at this point
Copy the full SHA 95d6d99View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e8637a - Browse repository at this point
Copy the full SHA 9e8637aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bee143 - Browse repository at this point
Copy the full SHA 3bee143View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e4782e - Browse repository at this point
Copy the full SHA 3e4782eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 781585a - Browse repository at this point
Copy the full SHA 781585aView commit details -
Reorganize all methods in HasteModuleLoader; it is now a readable file!
* Coverage is now collected for all modules except for node_modules; this simplifies the runner/loader quite a bit. * Cleaned up a few tiny bits here and there.
Configuration menu - View commit details
-
Copy full SHA for 88396f2 - Browse repository at this point
Copy the full SHA 88396f2View commit details -
Freeze the config object in the test runner and don’t mutate it any l…
…onger. Remove object-assign.
Configuration menu - View commit details
-
Copy full SHA for 5a1a457 - Browse repository at this point
Copy the full SHA 5a1a457View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 1ea7d1e - Browse repository at this point
Copy the full SHA 1ea7d1eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2cef024 - Browse repository at this point
Copy the full SHA 2cef024View commit details -
Configuration menu - View commit details
-
Copy full SHA for df4804b - Browse repository at this point
Copy the full SHA df4804bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb018e0 - Browse repository at this point
Copy the full SHA fb018e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for bfbef68 - Browse repository at this point
Copy the full SHA bfbef68View commit details -
Configuration menu - View commit details
-
Copy full SHA for 984ead6 - Browse repository at this point
Copy the full SHA 984ead6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c66ddc - Browse repository at this point
Copy the full SHA 0c66ddcView commit details -
Remove access to the resolver from the ModuleLoader; build the entire…
… moduleMap upfront in the TestRunner. + minor cleanups to the TestRunner.
Configuration menu - View commit details
-
Copy full SHA for 1c2834f - Browse repository at this point
Copy the full SHA 1c2834fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4132f9e - Browse repository at this point
Copy the full SHA 4132f9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fcc121 - Browse repository at this point
Copy the full SHA 2fcc121View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb1db33 - Browse repository at this point
Copy the full SHA bb1db33View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a8aa36 - Browse repository at this point
Copy the full SHA 7a8aa36View commit details -
Configuration menu - View commit details
-
Copy full SHA for af64d93 - Browse repository at this point
Copy the full SHA af64d93View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b39b9b - Browse repository at this point
Copy the full SHA 0b39b9bView commit details -
Split up TestRunner and a single test run.
Jest now has an actual software architecture. lol.
Configuration menu - View commit details
-
Copy full SHA for 462196b - Browse repository at this point
Copy the full SHA 462196bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1829692 - Browse repository at this point
Copy the full SHA 1829692View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a703de - Browse repository at this point
Copy the full SHA 4a703deView commit details -
* use testPathDirs instead of rootDir * Fix TestRunner-test
Configuration menu - View commit details
-
Copy full SHA for 06c5bd7 - Browse repository at this point
Copy the full SHA 06c5bd7View commit details -
Configuration menu - View commit details
-
Copy full SHA for f381030 - Browse repository at this point
Copy the full SHA f381030View commit details -
node-haste2 usage inside of Jest is pivoting!
* Resolving the entire Graph for every single test file has proven to be unfeasible in a sufficiently large codebase. This change now circumvents all static resolution and falls back to the same dynamic resolution that node-haste1 was providing in Jest. Jest pulls out the entire HasteMap of node-haste2 and uses that. node-modules are resolved inside of Jest only. * Instead of providing local moduleMaps per test, the entire haste map is now written to disk and read by workers and shared with all tests. * Jest is now by default using graceful-fs and provides it to test files as well. This is safer to not run into the file limits
Configuration menu - View commit details
-
Copy full SHA for b6eb94c - Browse repository at this point
Copy the full SHA b6eb94cView commit details
Commits on Feb 8, 2016
-
Provide two implementations of changed test path resolution.
The node-haste2 way of resolving shallow dependencies is way too slow for large codebases. The haste reverse-dep-graph lookup is less correct (ie, doesn’t work well with relative modules) but it works well with a haste only system.
Configuration menu - View commit details
-
Copy full SHA for e014290 - Browse repository at this point
Copy the full SHA e014290View commit details
Commits on Feb 9, 2016
-
Configuration menu - View commit details
-
Copy full SHA for d47d677 - Browse repository at this point
Copy the full SHA d47d677View commit details
Commits on Feb 10, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 35a7a2f - Browse repository at this point
Copy the full SHA 35a7a2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b32beb - Browse repository at this point
Copy the full SHA 1b32bebView commit details
Commits on Feb 15, 2016
-
Reviewed By: voideanvalue Differential Revision: D2629814
Configuration menu - View commit details
-
Copy full SHA for 8b8ecb9 - Browse repository at this point
Copy the full SHA 8b8ecb9View commit details