Closed aleclarson closed 6 years ago
Added in v0.2.0
🎉
The implementation can be found here. We hook into NodeJS's module loader, and track the parent modules of any module used by tests (directly or indirectly). It works perfectly, and easy to grok! 😏
How
jest
does it: https://github.com/facebook/jest/blob/77744a24816d0978b6c478987426c36d615864bd/packages/jest-cli/src/search_source.js#L145-L162