Closed
Description
After a long discussion in #741 it seems to me that src/node_modules
seems like the best solution for absolute imports.
It has the following benefits:
- Doesn't rely on symlinks (they don't work well on Windows).
- Works with IDEs and any existing tooling because it relies on Node resolution mechanism.
- If you really want to, you can run
ln -s src/node_modules src/packages
and use the "nicer"packages
(or any other) folder.
This issue is a call to help to make this approach the official one. We need to:
- Document it
- Make Jest preprocess this subfolder Allow Jest to preprocess non-root node_modules #607
- Make Jest run tests in it Jest ignoring tests inside src/node_modules #1042
- Fix any other integration issues we find
If you want to work on either please leave a comment and then submit a PR!
Cheers.