Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert Jest moduleNameMapper regex back to a whitelist (#1149)
Jest matches moduleNameMapper regexes with module names, not the full file path, so the negative lookahead doesn’t work for filtering out JS files, because they can be imported without the extension. So paths like `lodash.assign` and `../utils/range` were mislabeled as resources with unknown file extensions because they have a dot in the name. As a stopgap measure, revert the moduleNameMapper regex added in #1077.
- Loading branch information